URGENT : Customizing Patterns for levels

2005-03-16 Thread saleem
Hi, log4j.category.quality.eprowiz.SimpleLogger=INFO, dest4 log4j.appender.dest4=org.apache.log4j.DailyRollingFileAppender log4j.additivity.dest4=false log4j.appender.dest4.File=debuglog.txt log4j.appender.dest4.DatePattern='.'-MM-dd log4j.appender.dest4.layout=org.apache.log4j.PatternLay

Re: Logging problem on Mandrake

2005-03-16 Thread John Hunsley
Yes I get the same in txttools-web.log. I guess it is auto configured as I just followed the instructions and created the log4j.properties file. I have made sure I do not call anything other than ; logger.warn(); or, if(logger.isDebugEnabled() ) logger.debug(); in my code, I do not set logging

Re: Logging problem on Mandrake

2005-03-16 Thread James Stauffer
It is possible that your web app is being reloaded? Each reload could cause it to be configured again. On Wed, 16 Mar 2005 13:24:29 +, John Hunsley <[EMAIL PROTECTED]> wrote: > Yes I get the same in txttools-web.log. I guess it is auto configured as > I just followed the instructions and cre

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
I tried using 1.2.9 (stable) and I was able to get the RollingFileAppend to work. When I try running my application from a command line, I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Category Here is my full config file: # Set root category prior

Multiple log files.

2005-03-16 Thread Luke Reeves
I'm trying to log different areas of my software to different log files - this seems to be a common problem on the list, but none of the previous solutions have worked for me. I'm using the most recently released Log4J library, and most of the code in my project uses the line: Logger log = Logg

Re: Logging problem on Mandrake

2005-03-16 Thread John Hunsley
It was deployed with a war file, when I boot tomcat I changed the webapp dir to ROOT but whilst the app is running the war file doesnt re-deploy so I guess it is not reloading. John. James Stauffer wrote: It is possible that your web app is being reloaded? Each reload could cause it to be con

JMSAppender

2005-03-16 Thread subhendu mahanta
We are working with Sun Application Server 2004Q2. and want to use JMSAppender I have used a properties file logger.properties like this: log4j.rootCategory=, JMSAppender log4j.appender.JMSAppender=org.apache.log4j.net.J

Re: URGENT : Customizing Patterns for levels

2005-03-16 Thread Curt Arnold
On Mar 16, 2005, at 4:15 AM, saleem wrote: Is it possible in log4j to define multiple conversion patterns over the debug levels in the same category. For example; When I write : simpleLogger.error then I like to see class name & line number And When I write : simpleLogger.info then I do not wish to

Re: Logging problem on Mandrake

2005-03-16 Thread James Stauffer
You could add -Dlog4j.debug and the it should print to standard output when it is being configured. It may also have other clues to help you. On Wed, 16 Mar 2005 14:54:27 +, John Hunsley <[EMAIL PROTECTED]> wrote: > It was deployed with a war file, when I boot tomcat I changed the > webapp

Chainsaw with CustomSQLDBReceiver fo oracle

2005-03-16 Thread Ghielli Patrick
Hi, I am trying to configure a CustomSQLDBReceiver for the Oracle DB I am using. After solving some problems mentionned in other postings on this mailing list, I now try set up a working sql statement. The statement I have now results in an error. The event in the chainsaw log describe it as an in

Re: RollingFileAppender

2005-03-16 Thread Curt Arnold
On Mar 16, 2005, at 8:12 AM, Jason Roscoe wrote: I tried using 1.2.9 (stable) and I was able to get the RollingFileAppend to work. When I try running my application from a command line, I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Category Here i

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
I am running on a windows machine, so I can't use your jar command to grep for Category.class. If I open up my log4j jar, under org.apache.log4j, I have a Category.class file. I ran this: java -classpath "..\lib\classes\log4j-1.2.9.jar" org.apache.log4j.Category and got Exception in thread "ma

Re: RollingFileAppender

2005-03-16 Thread James Stauffer
Is log4j in your classpath twice? On Wed, 16 Mar 2005 12:53:59 -0500, Jason Roscoe <[EMAIL PROTECTED]> wrote: > > I am running on a windows machine, so I can't use your jar command to grep > for Category.class. If I open up my log4j jar, under org.apache.log4j, I > have a Category.class file. >

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
I was able to get this to run on a linux box, adding a manifest file with the classpaths in there. But, when I try to run the same jar file on my windows box, I get Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Category Could this have something to do with my window

RE: RollingFileAppender

2005-03-16 Thread Rieser, Michael \(SCI TW\)
On Windows try: jar -tf log4j-1.2.9.jar | find "Category.class" Note: the double quotes ("") are necessary. Mike > -Original Message- > From: Jason Roscoe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 16, 2005 11:54 AM > To: 'Log4J Users List' > Subject: RE: RollingFileAppender >

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
I can't run 'jar', I get this error: 'jar' is not recognized as an internal or external command, operable program or batch file. -Original Message- From: Rieser, Michael (SCI TW) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 3:39 PM To: Log4J Users List Subject: RE: RollingFi

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
Sorry, I got it to work, I get this back org/apache/log4j/Category.class org/apache/log4j/spi/RootCategory.class -Original Message- From: Rieser, Michael (SCI TW) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 3:39 PM To: Log4J Users List Subject: RE: RollingFileAppender On W

Re: RollingFileAppender

2005-03-16 Thread James Stauffer
Another option: Get UnixUtils from http://unxutils.sourceforge.net/. Just extract, add usr/bin/wbin to you path, and you are set. On Wed, 16 Mar 2005 14:39:02 -0600, Rieser, Michael (SCI TW) <[EMAIL PROTECTED]> wrote: > On Windows try: > > jar -tf log4j-1.2.9.jar | find "Category.class" > > No

SyslogAppender, -r option on unix syslog daemon

2005-03-16 Thread Pramodh Peddi
Hi, Not sure if this is a common problem. Our product runs in Tomcat, and the product’s log4j is configured with SyslogAppender (programmatically). When I am running the application on windows, messages are being spit to local Windows syslog daemon (I use Kiwi Syslog daemon). When I run th

configure SocketHubReceiver in chainsaw using log4j.xml / log4j.properties.

2005-03-16 Thread Subramani, GnanaShekar \(GE Healthcare, non-ge\)
Hi, Somebody please help me how to configure SocketHubReceiver in chainsaw using log4j.xml / log4j.properties. I created the following log4j.xml / log4j.properties and used it with chainsaw. But this does not work. log4j.xml - http://jakarta.apache.org/log4j/"; debug="false">

Re: configure SocketHubReceiver in chainsaw using log4j.xml / log4j.properties.

2005-03-16 Thread Paul Smith
Subramani, GnanaShekar (GE Healthcare, non-ge) wrote: Hi, Somebody please help me how to configure SocketHubReceiver in chainsaw using log4j.xml / log4j.properties. I created the following log4j.xml / log4j.properties and used it with chainsaw. But this does not work. log4j.xml - htt

Re: Multiple log files.

2005-03-16 Thread Aswin Asokan
Try changing log4j.logger.MailLog=mail to log4j.logger.MailLog=DEBUG,mail Regards, Aswin Asokan On Wed, 16 Mar 2005 09:54:04 -0500, Luke Reeves <[EMAIL PROTECTED]> wrote: > I'm trying to log different areas of my software to different log files > - this seems to be a common problem on the li