I had a similar problem about a week ago. It turned out that my root Logger also had a
console appender. In my case I think it was because something else in my environment
(J2EE server) was calling commons-logging to set up a default logger.
The solution I used was to call
Hello Ceki,
I got my problem solved. I deleted all the other
log4j.xml files from my pc, may be from cache the
application server is taking some other log4j files.
This solved my problem.
Thanks for all your help and guidence.
thanks and regards
--- Ceki Gülcü [EMAIL PROTECTED] wrote:
Can
By way of an answer to the original question of how to separate the logging
of an application on JBoss, the only satisfactory solution I've found has
been to stop using the ConsoleAppender and stick with a
RotatingFileAppender. All my applications loggers use this appender, and
their additivity is
i find out through my log that threads may corrupt each other log ,
creating unreadable log.
could it be ? doesn't log4j is safe thread ?
(form my research , the java.io.Writer 'write()' methods are synchronized ,
and log4j FileAppended uses a subclass as writer)
Thanks a ton, Keith. This really helped and there were no extra messages. I still fail
to understand why this is happening when even there was only appender as mentioned
earlier. And this is just a simple Java client not J2EE .
However it is working and thanks once agin for your time.
Cheers
Thanks for this Michael. Just what I needed.
Regards,
John
Lutz Michael
I spent many hours trying to figure this out. If you are using separate JVM's that
write to the same log file then the operating system will not be able to handle the
resource sharing. The JVM's don't know of each other and are trying to access a
log.txt resource at the same time. In version
You could switch to an XML config file and use ENTITY includes to include a
file containing your global settings.
Another option would be to use variable replacement in each of your seperate
configs. Something like log4j.logger.org.apache=${ORG_APACHE_LOG_LEVEL};
then set ORG_APACHE_LOG_LEVEL as
Hello all,
How is it possible upon an environment variable to decide if to define a
certain Appender 'TestApp' or not?
Meaning,
Let's say we have a java property 'isAppenderTestApp'.If it's set true
we want the 'TestApp' defined in the log4j property file to take affect, and
if set false it
James,
I tried that too - having separate loggers and a separate Appender. But
even then I encountered the problem you mentioned: my output was appended
onto the end of JBoss' logs format. Could you (offline perhaps, to spare the
list a repost) send me an example config file?
Thanks,
Brendan.
On Thu, 27 Feb 2003 23:29:37 +0100, Ceki Gülcü wrote
Jason,
Are you using the %L, %F, %M, %C conversion specifiers in
PatternLayout? Those are known to have a tremendous impact on
certain platforms.
Nope. This is all I'm doing:
logger.setLevel(Level.DEBUG);
ConsoleAppender conApp = new
At 04:38 PM 2/27/2003 -0600, you wrote:
On Thu, 27 Feb 2003 23:29:37 +0100, Ceki Gülcü wrote
Jason,
Are you using the %L, %F, %M, %C conversion specifiers in
PatternLayout? Those are known to have a tremendous impact on
certain platforms.
Nope. This is all I'm doing:
On Thu, 27 Feb 2003 23:44:05 +0100, Ceki Gülcü wrote
At 04:38 PM 2/27/2003 -0600, you wrote:
On Thu, 27 Feb 2003 23:29:37 +0100, Ceki Gülcü wrote
Jason,
Are you using the %L, %F, %M, %C conversion specifiers in
PatternLayout? Those are known to have a tremendous impact on
certain
Is Log4J a 'free' Open Source API?
Thanks,
Shyla
--
NOTICE: This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely
for the use of
Everyone,
Is there a way to use the LevelMatchFilter programmatically? Currently, it
can be used with DOMConfigurator.
Is there a way you can set more than one levels, for a Logger so that
logEvent is called for any of these levels, it should be logged, others
ignored.
Since I am a newbie,
Is Log4J a 'free' Open Source API?
Depends on your definition, I reckon.
http://www.apache.org/foundation/licence-FAQ.html
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
By the way, you can find the o.a.l.filters directory in the log4j-sandbox
instead of log4j proper. Mark, I think they should be moved back to the
main log4j branch.
At 06:58 AM 2/28/2003 +0100, you wrote:
Hi Mike,
Sorry for not responding earlier. Comments inline.
At 11:13 AM 2/19/2003 -0800,
Hi! I'm still a student studying J2EE and ran into
this problem while setting up my Log4J running with
Tomcat 4.0.1 for my project.
The problem is that it works Perfectly on my Desktop
but runs into this problem on my laptop:
log4j:ERROR No appenders could be found for category
Log4j probably cannot find the log4j.properties file. Where have you placed
it?
At 02:18 PM 2/28/2003 +0800, you wrote:
Hi! I'm still a student studying J2EE and ran into
this problem while setting up my Log4J running with
Tomcat 4.0.1 for my project.
The problem is that it works Perfectly on my
I placed it in the {catalina-home}/common/lib folder.
it works on my desktop though...
Maybe it's an issue with Win XP with SP1?
I'm at my wits end...
--- Ceki Gülcü [EMAIL PROTECTED] wrote:
Log4j probably cannot find the log4j.properties
file. Where have you placed
it?
At 12:36 AM 2/28/2003, you wrote:
I placed it in the {catalina-home}/common/lib folder.
it works on my desktop though...
Maybe it's an issue with Win XP with SP1?
I'm at my wits end...
Shouldn't it be in the WEB-INF/classes directory of your web app? That's
where I'm putting log4j.xml
I just tried putting it in the
webapps/appname/WEB-INF/classes folder but still the
same error.
Thanks for the suggestion!
--- Scott Schram [EMAIL PROTECTED] wrote: At 12:36
AM 2/28/2003, you wrote:
I placed it in the {catalina-home}/common/lib
folder.
it works on my desktop though...
22 matches
Mail list logo