Looking for an extended Daily Rolling File Appender

2009-06-02 Thread collatz
Hi there! I'm looking for an Appender which offers the functionality of the Daily Rolling File Appender plus one more thing: It must be able to log only Information containing a given keyword. I.e. i want to define a specific material number as keyword, and only information concerning this mater

Re: Looking for an extended Daily Rolling File Appender

2009-06-02 Thread Yair Ogen
Did you look at the log4j Filter support? On Tue, Jun 2, 2009 at 1:22 PM, collatz wrote: > > Hi there! > > I'm looking for an Appender which offers the functionality of the Daily > Rolling File Appender plus one more thing: It must be able to log only > Information containing a given keyword. >

RE: Looking for an extended Daily Rolling File Appender

2009-06-02 Thread Michael Erskine
Why not use grep and cron? (There seems to be an endless movement to try and make Log4j perform the tasks already performed perfectly by established tools!) Regards, Michael Erskine. - To unsubscribe, e-mail: log4j-user-unsubsc

Re: Log4j and unique message identities

2009-06-02 Thread Captain Haddock
Thanks Yair That will work for log4j. Don't see any equivalent in commons-logging .. any thoughts there anyone? Yair Ogen wrote: We use a transaction id which we put in MDC and print using the %X{MDC_KEY} notation in the conversion pattern. On Tue, Jun 2, 2009 at 12:57 AM, David Grigglestone

Re: Log4j and unique message identities

2009-06-02 Thread Yair Ogen
why not point commons-logging to log4j and use the log4j API for this? On Tue, Jun 2, 2009 at 3:05 PM, Captain Haddock wrote: > Thanks Yair > > That will work for log4j. > > Don't see any equivalent in commons-logging .. any thoughts there anyone? > > > Yair Ogen wrote: > >> We use a transaction

Re: Log4j and unique message identities

2009-06-02 Thread Captain Haddock
Can't do that without importing log4j or using reflection :( Would like to use log4j but may be restricted to commons-logging in places by other factors. Yair Ogen wrote: why not point commons-logging to log4j and use the log4j API for this? On Tue, Jun 2, 2009 at 3:05 PM, Captain Haddock

How to find which log file the log is being written

2009-06-02 Thread Ashish Kulkarni
HiI have an application which is installed in clustered weblogic environment, and for some reason i do not see any logs in the log file specified in File section I have defined my logger as below, i dont see any log file in my log4jxml.xml file, but only in weblogic log file, how do i find out what

Re: How to find which log file the log is being written

2009-06-02 Thread Yair Ogen
use log4j.debug=true On Tue, Jun 2, 2009 at 5:00 PM, Ashish Kulkarni wrote: > HiI have an application which is installed in clustered weblogic > environment, and for some reason i do not see any logs in the log file > specified in File section > I have defined my logger as below, i dont see any

Re: Log4j and unique message identities

2009-06-02 Thread Jacob Kjome
Doesn't SLF4J support MDC in its interfaces?  Just start using that.  And for code that continues to use the commons-logging API, you can use the slf4j over commons-logging module and the slf4j Log4j module to bind to Log4j. Jake On Tue, 02 Jun 2009 09:05:19 -0400 Captain Haddock wrote: Ca

Re: How to find which log file the log is being written

2009-06-02 Thread Jacob Kjome
How do you configure Log4j?  "log4jxml.xml" will not be picked up for auto-configuration.  You'd have to change the name to "log4j.xml" for that.  You can set the Java system property "-Dlog4j.debug=true" to see Log4j's internal logging, which will show which file it is (or possibly isn't) conf

Re: How to find which log file the log is being written

2009-06-02 Thread Ashish Kulkarni
HiWhere do i set this log4j.debug =true, and where would be it print the debug message On Tue, Jun 2, 2009 at 10:09 AM, Yair Ogen wrote: > use log4j.debug=true > > On Tue, Jun 2, 2009 at 5:00 PM, Ashish Kulkarni < > ashish.kulkarn...@gmail.com > > wrote: > > > HiI have an application which is in

Re: How to find which log file the log is being written

2009-06-02 Thread Ashish Kulkarni
HiHow do i set log4j.debug=true in XML configuration file On Tue, Jun 2, 2009 at 10:55 AM, Ashish Kulkarni < ashish.kulkarn...@gmail.com> wrote: > HiWhere do i set this log4j.debug =true, and where would be it print the > debug message > > > On Tue, Jun 2, 2009 at 10:09 AM, Yair Ogen wrote: > >>

Re: How to find which log file the log is being written

2009-06-02 Thread Jacob Kjome
While you can set it in the config file http://logging.apache.org/"; debug="true"> ...It's somewhat pointless if, in fact, your config file is not being picked up in the first place for configuration.  The better way to do this is to modify the Java command that starts up the server and ad