RE: Double and/or duplicate logging?

2003-02-27 Thread Keith Hatton
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

Re: log4j and Tomcat 4.1.18:URGENT

2003-02-27 Thread kanika singh
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

RE: Reposting of Log4J Question

2003-02-27 Thread Brendan Lawlor
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

does log4j is synchronized?

2003-02-27 Thread Ofer Baranes
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)

RE: Double and/or duplicate logging?

2003-02-27 Thread Vinodh Lakshminarayan
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

RE: JDBCAppender - passing parameters to SQL statement

2003-02-27 Thread john . fairbairn
Thanks for this Michael. Just what I needed. Regards, John Lutz Michael

RE: does log4j is synchronized?

2003-02-27 Thread Keys, Andrew T
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

RE: newbie setup question

2003-02-27 Thread Ebersole, Steven
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

defining a conditional appender in a properties file

2003-02-27 Thread Abramson, Rami
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

RE: Reposting of Log4J Question

2003-02-27 Thread Brendan Lawlor
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.

Re: log4j slows down on OSX 10.2.4

2003-02-27 Thread Jason Bodnar
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

Re: log4j slows down on OSX 10.2.4

2003-02-27 Thread Ceki Gülcü
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:

Re: log4j slows down on OSX 10.2.4

2003-02-27 Thread Jason Bodnar
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

Free Open Source.

2003-02-27 Thread Shyla . Rajeev
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

LevelMatchFilter

2003-02-27 Thread aliasgar . husain
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,

Re: Free Open Source.

2003-02-27 Thread Dave Newton
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]

Re: Future of Custom Filters?

2003-02-27 Thread Ceki Gülcü
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,

Really Newbie Problem

2003-02-27 Thread Ronnie Choo
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

Re: Really Newbie Problem

2003-02-27 Thread Ceki Gülcü
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

Re: Really Newbie Problem

2003-02-27 Thread Ronnie Choo
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?

Re: Really Newbie Problem

2003-02-27 Thread Scott Schram
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

Re: Really Newbie Problem

2003-02-27 Thread Ronnie Choo
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...