Hello Sudhakar,
What you want to do is check the
http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html
PropertyConfigurator class, in particulat the
http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html#configureAndWatch(java.lang.Str
On Aug 14, 2006, at 2:40 PM, Curt Arnold wrote:
On Aug 14, 2006, at 10:22 AM, Mike Baranczak wrote:
I'm seeing an intermittent error on one of our jboss servers.
Every once in a while, something happens to the logging system,
and every attempt to write to the log causes an exception (see
If you take a look at my test cases, I did isolate the file I/O. One of the
tests writes 1000 statements to the servlet console, which I assume uses
STDOUT. That is blazing fast.
Why don't you just try to write some garbage to a file for testing?
Maybe go to the RollingFileAppender's source a
Is there a log4j.xml anywhere on the classpath (in the default package, that
is)? Look in directories and jars. I would suggest changing to an XML config
file because Log4j looks for it first. If it doesn't find log4j.xml, then it
looks for log4j.properties. I've seen this happen so often to u
On Aug 14, 2006, at 10:22 AM, Mike Baranczak wrote:
I'm seeing an intermittent error on one of our jboss servers. Every
once in a while, something happens to the logging system, and every
attempt to write to the log causes an exception (see below), which
of course is of major concern to us
Thanks for the reply!
The scenario is that my customer has the 64-bit machine and I have only
32-bit systems for testing. That's a problem because they will not allow me
to run our profiler on their environment :( I cannot replicate in the
32-bit environment so I can't profile here. I am curre
matt.accola wrote:
What can I do to get some help on this issue? Please let me know if I can
provide more information? I have opened a ticket with IBM but I think the
Log4j community will probably be more helpful.
Have you tried to do profiling of the application or the test-case while
it ac
Try running with -Dlog4j.debug. That should give you more info about
the problem.
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
No
James Stauffer wrote:
> Is there a log4j.jar under shared or common?
>
> On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
>> I _only_ moved log4j.properti
No
James Stauffer wrote:
Is there a log4j.jar under shared or common?
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
I _only_ moved log4j.properties from shared/classes to two different
webapps/app/WEB-INF/classes directory. In other words I deleted the
original file and made two differen
Is there a log4j.jar under shared or common?
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
I _only_ moved log4j.properties from shared/classes to two different
webapps/app/WEB-INF/classes directory. In other words I deleted the
original file and made two different copies (with the required
Tomcat uses Apache commons logging which will use sun logging if log4j
isn't found. You can configure commons logging to use log4j.
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
Hello
I'm using log4j, but tomcat seems to use the sun java logger. Are there
any way to catch its logs, or ma
I _only_ moved log4j.properties from shared/classes to two different
webapps/app/WEB-INF/classes directory. In other words I deleted the
original file and made two different copies (with the required
modifications of course).
Both projects has it's own log4j.jar too.
Thanks:
Bence
J
Ok then I don't have any more advice because I hadn't used that appender.
On 8/14/06, theMonkyBoy <[EMAIL PROTECTED]> wrote:
Hi James,
Thanks for your reply.
James Stauffer wrote:
>
> You only showed your appender config. Are you use the messages are
> getting to the appender.
>
Here is m
Hello
I'm using log4j, but tomcat seems to use the sun java logger. Are there
any way to catch its logs, or make it use log4j instead?
Thanks:
Bence
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I'm seeing an intermittent error on one of our jboss servers. Every
once in a while, something happens to the logging system, and every
attempt to write to the log causes an exception (see below), which of
course is of major concern to us.
So far, this is only happening on one box. I'm tryi
Hi James,
Thanks for your reply.
James Stauffer wrote:
>
> You only showed your appender config. Are you use the messages are
> getting to the appender.
>
Here is my complete log4j.xml configuration file:
http://jakarta.apache.org/log4j/";>
Did you move log4j.properties also? You will need to do that too.
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
Hello
James Stauffer wrote:
> I meant different config files. If you move the lib/log4j.jar and
> classes/log4j.properties from the shared classpath (i.e.
> tomcat/common) to
The XML format does support more things than the properties format and
I think it is much easier to read.
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
Hello
Why everybody use xml file instead of properties file? It's twice as
much typing as the properties file...
Does it have any additi
You only showed your appender config. Are you use the messages are
getting to the appender.
If you run with -Dlog4j.debug it might give you helpful info.
On 8/14/06, theMonkyBoy <[EMAIL PROTECTED]> wrote:
Hi,
sorry for this post, but I've been searching for a couple of days now and
found not
Sorry I wasn't clear. The only way to have them use a common config
is to use a common config file. I was trying to make the point that
by using the common config file you are grouping all of your
applications together somewhat.
On 8/14/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
>> I meant d
Hi,
I was using the following parameters with my log4j-1.2.x
RollingFileAppender appender.
Now in 1.3, the new impl. of RollingFileAppender, these parameters
seems to go. Is there any kind of parameter for these tasks there
(e.g. passig parameters to )?
Thanks in advance.
--
Well, sometimes neither of them writes the log, sometimes both of them
uses the SocketAppender...
As if in every tomcat restart it would have throw a dice...
the only message:
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D igester.sax).
log4j:WARN Please ini
Hi,
Why everybody use xml file instead of properties file? It's twice as
much typing as the properties file...
personally, the properties files look too much like voodoo for my tastes
and I think the xml files are much easier to read.
Does it have any additional function? Or is there a kind
Hi,
sorry for this post, but I've been searching for a couple of days now and
found nothing to help me get started via google!
In our environment we currently have a cluster of J2EE servers, where each
member writes to their own log file. Now we would like to also write to one
consolidated log
What can I do to get some help on this issue? Please let me know if I can
provide more information? I have opened a ticket with IBM but I think the
Log4j community will probably be more helpful.
--
View this message in context:
http://www.nabble.com/Log4j-1.2.9%2C-64-bit%2C-Websphere-Performan
Hello
Why everybody use xml file instead of properties file? It's twice as
much typing as the properties file...
Does it have any additional function? Or is there a kind of editor which
makes it easier to use?
Thanks:
Bence
--
Hello
James Stauffer wrote:
I meant different config files. If you move the lib/log4j.jar and
classes/log4j.properties from the shared classpath (i.e.
tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app
will use a separate config file.
I deleted the common /tomcat/shared/cl
>> I meant different config files. If you move the lib/log4j.jar and
>> classes/log4j.properties from the shared classpath (i.e.
>> tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each
>> app will use a separate config file.
...but
>> >> > If you want all projects to use the same
Takacs Bence escribió:
I have successfully configured the ZeroConf feature of chainsaw. Follow
the instructions, add all the required and depending jars. It works with
both sides (logging app and Chainsaw) in the same computer or in
different ones.
Appender XML log4j config:
http://jakarta.a
29 matches
Mail list logo