RE: How stable is Chainsaw 2?
Paul, This is an output I get. :\java\jdev905preview\jdk\bin\javaw.exe -classpath H:\java\jdev905preview\jdk\lib\tools.jar;H:\cvs\jakarta-log4j\dist\class es;H:\java\jdev905preview\jdev\lib\ant.jar;H:\java\jdev905preview\jdev\l ib\optional.jar;H:\java\jdev905preview\lib\xmlparserv2.jar;H:\java\jdev9 05preview\lib\xmlcomp.jar;H:\java\jdev905preview\jdev\classes;H:\java\jd ev905preview\ide\lib\javatools.jar;H:\java\jdev905preview\ide\lib\ide.ja r;H:\java\jdev905preview\jdev\lib\jdev.jar;H:\java\jdev905preview\jdev\l ib\ojc.jar org.apache.tools.ant.Main -Djdev.home=H:\java\jdev905preview -buildfile H:\cvs\jakarta-log4j\build.xml chainsaw Buildfile: H:\cvs\jakarta-log4j\build.xml init: oroCheck: chainsawCheck: build.core: [mkdir] Created dir: H:\cvs\jakarta-log4j\dist\classes [javac] Compiling 199 source files to H:\cvs\jakarta-log4j\dist\classes build.chainsaw: build.lf5: [javac] Compiling 44 source files to H:\cvs\jakarta-log4j\dist\classes [javac] Note: H:\cvs\jakarta-log4j\src\java\org\apache\log4j\lf5\viewer\LogBrokerMonit or.java uses or overrides a deprecated API. [javac] Note: Recompile with -deprecation for details. [copy] Copying 3 files to H:\cvs\jakarta-log4j\dist\classes build.examples: [mkdir] Created dir: H:\cvs\jakarta-log4j\examples\classes [javac] Compiling 12 source files to H:\cvs\jakarta-log4j\examples\classes [rmic] RMI Compiling 1 class to H:\cvs\jakarta-log4j\examples\classes jaxpCheck: jaxp: [echo] JAXP present. build.xml: [javac] Compiling 7 source files to H:\cvs\jakarta-log4j\dist\classes [copy] Copying 1 file to H:\cvs\jakarta-log4j\dist\classes\org\apache\log4j\xml [copy] Copying 1 file to H:\cvs\jakarta-log4j\dist\classes\org\apache\log4j\xml javamailCheck: javamail: [echo] JAVAMAIL is present. build.javamail: [javac] Compiling 1 source file to H:\cvs\jakarta-log4j\dist\classes jmsCheck: jms: jndiCheck: jndi: [echo] JNDI is present. build.jms: jmxCheck: jmx: build.jmx: avalonFrameworkCheck: avalonFramework: build.avalonFramework: build: log4j.jar: [delete] Deleting 1 files from H:\cvs\jakarta-log4j [jar] Building jar: H:\cvs\jakarta-log4j\log4j-1.3alpha.jar log4j-chainsaw.jar: [delete] Deleting 1 files from H:\cvs\jakarta-log4j [copy] Copying 71 files to H:\cvs\jakarta-log4j\dist\classes [jar] Building jar: H:\cvs\jakarta-log4j\log4j-chainsaw-1.3alpha.jar chainsaw: [java] java.lang.NoClassDefFoundError: org/apache/log4j/chainsaw/LogUI [java] Exception in thread "main" [java] Java Result: 1 BUILD SUCCESSFUL Total time: 16 seconds [12:38:01 AM] Nothing to build. -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 10:41 PM To: 'Log4J Users List ' Subject: RE: How stable is Chainsaw 2? > Not from what I can see. Only build.properties is > loaded. build.properties.sample is ignored and is only used as a > template. Jake, you are correct. I must be thinking of another project. Robert, we'll definately need to see the output of the ant target as it runs. cheers, Paul Smith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DailyRollingFileAppender with filesize option
Hi, I have the following log4j property file: log4j.rootLogger=debug, A log4j.logger.SickPay=debug, SP log4j.appender.SP=org.apache.log4j.DailyRollingFileAppender log4j.appender.SP.File=COMMON~1\\Trial\\SP.log log4j.appender.SP.MaxFileSize=1KB log4j.appender.SP.MaxBackupIndex=6 log4j.appender.SP.layout=org.apache.log4j.PatternLayout log4j.appender.SP.layout.ConversionPattern=%d ::%m%n I need to roll over the file on basis of both the date and Size of the file. When i run the application it gives me the compilation error: log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender. log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender. I checked the Mail list archive and there was a suggestion that one use CompositeRollingFileAppender. Where can i find CompositeRollingFileAppender? Could anyone suggest a way to implement this? Regards, Ms. Divya Shetty
RE: How stable is Chainsaw 2?
> Not from what I can see. Only build.properties is > loaded. build.properties.sample is ignored and is only used as a > template. Jake, you are correct. I must be thinking of another project. Robert, we'll definately need to see the output of the ant target as it runs. cheers, Paul Smith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How stable is Chainsaw 2?
At 11:09 AM 11/29/2003 +1100, you wrote: It should have created 3 jar files, one with chainsaw in it's name. Ant may be ignoring chainsaw's build phase because you are missing some dependant jars. Have you edited the build.properties.sample? (I've found that you have to make sure there is not BOTH a build.properties.sample and a build.properties, the build picks up the former first.) Not from what I can see. Only build.properties is loaded. build.properties.sample is ignored and is only used as a template. Jake Otherwise cut/paste the output of the full build to the list so we can see what is going on. cheers, and thanks for taking the time to have a look at chainsaw v2. Paul -Original Message- From: Robert Augustyn To: 'Log4J Users List' Sent: 11/29/03 8:04 AM Subject: RE: How stable is Chainsaw 2? Paul, I downloaded it and run it. It created 2 jar files but neither has logUI in it so when it tries to start it gets : ava.lang.NoClassDefFoundError: org/apache/log4j/chainsaw/LogUI None of Chainsaw classes get created either. Robert -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 2:04 AM To: 'Log4J Users List' Subject: RE: How stable is Chainsaw 2? It's very stable, and very usable with features be added all the time, but the current functionality is very usable (I might be biased, I am one of the developers of the new version) You will need to download the jakarta-log4j module from the apache cvs, you can find the general procedure for retrieving cvs modules here: http://jakarta.apache.org/site/cvsindex.html >From there, modify the build.properties.sample file to suit your local sitation (like where a couple of jar files are located) and then use Ant: ant chainsaw Let us know if you have any troubles downloading and/or running it. cheers Paul Smith > -Original Message- > From: Robert Augustyn [mailto:[EMAIL PROTECTED] > Sent: Friday, 28 November 2003 5:24 PM > To: 'Log4J Users List' > Subject: How stable is Chainsaw 2? > > > Hi, > I wonder if Chainsaw 2 is a usable product? > If so where can I get it? > Thanks. > robert > > > __ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How stable is Chainsaw 2?
It should have created 3 jar files, one with chainsaw in it's name. Ant may be ignoring chainsaw's build phase because you are missing some dependant jars. Have you edited the build.properties.sample? (I've found that you have to make sure there is not BOTH a build.properties.sample and a build.properties, the build picks up the former first.) Otherwise cut/paste the output of the full build to the list so we can see what is going on. cheers, and thanks for taking the time to have a look at chainsaw v2. Paul -Original Message- From: Robert Augustyn To: 'Log4J Users List' Sent: 11/29/03 8:04 AM Subject: RE: How stable is Chainsaw 2? Paul, I downloaded it and run it. It created 2 jar files but neither has logUI in it so when it tries to start it gets : ava.lang.NoClassDefFoundError: org/apache/log4j/chainsaw/LogUI None of Chainsaw classes get created either. Robert -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 2:04 AM To: 'Log4J Users List' Subject: RE: How stable is Chainsaw 2? It's very stable, and very usable with features be added all the time, but the current functionality is very usable (I might be biased, I am one of the developers of the new version) You will need to download the jakarta-log4j module from the apache cvs, you can find the general procedure for retrieving cvs modules here: http://jakarta.apache.org/site/cvsindex.html >From there, modify the build.properties.sample file to suit your local sitation (like where a couple of jar files are located) and then use Ant: ant chainsaw Let us know if you have any troubles downloading and/or running it. cheers Paul Smith > -Original Message- > From: Robert Augustyn [mailto:[EMAIL PROTECTED] > Sent: Friday, 28 November 2003 5:24 PM > To: 'Log4J Users List' > Subject: How stable is Chainsaw 2? > > > Hi, > I wonder if Chainsaw 2 is a usable product? > If so where can I get it? > Thanks. > robert > > > __ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How stable is Chainsaw 2?
Paul, I downloaded it and run it. It created 2 jar files but neither has logUI in it so when it tries to start it gets : ava.lang.NoClassDefFoundError: org/apache/log4j/chainsaw/LogUI None of Chainsaw classes get created either. Robert -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2003 2:04 AM To: 'Log4J Users List' Subject: RE: How stable is Chainsaw 2? It's very stable, and very usable with features be added all the time, but the current functionality is very usable (I might be biased, I am one of the developers of the new version) You will need to download the jakarta-log4j module from the apache cvs, you can find the general procedure for retrieving cvs modules here: http://jakarta.apache.org/site/cvsindex.html >From there, modify the build.properties.sample file to suit your local sitation (like where a couple of jar files are located) and then use Ant: ant chainsaw Let us know if you have any troubles downloading and/or running it. cheers Paul Smith > -Original Message- > From: Robert Augustyn [mailto:[EMAIL PROTECTED] > Sent: Friday, 28 November 2003 5:24 PM > To: 'Log4J Users List' > Subject: How stable is Chainsaw 2? > > > Hi, > I wonder if Chainsaw 2 is a usable product? > If so where can I get it? > Thanks. > robert > > > __ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Specifying Different Location for Log File
I got this working by escaping the directory name as follows: log4j.appender.R.file=D:\\WSAD5.1\\Logs\\weblog.log Bisi > -Original Message- > From: Adedokun, Bisi > Sent: Friday, November 28, 2003 10:38 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Specifying Different Location for Log File > > Hello, > > I'm using log4j in a struts application. I'd like to specify a > different location for the log file. Presently, the log file is written to > the $[WSAD_ROOT] which is C:\Program Files\IBM\WebSphere > Studio\Application Developer\v5.1. I have specified different location in > the log4j.properties file but it does not write to the specified location. > Is there a way to do this in log4j? I have gone through the log4j API, FAQ > and documentation and I did not see any entry regarding writing log file > to a different location. I'm I missing something? > > Below is a sample entry in the log4j.properties file: > > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.maxBackupIndex=1 > log4j.appender.R.append=true > log4j.appender.R.bufferSize=8192 > log4j.appender.R.file=weblog.log > log4j.appender.R.bufferedIO=false > log4j.appender.R.immediateFlush=true > log4j.appender.R.maximumFileSize=102400 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.conversionPattern=%d [%t] %-5p %c %M.%L %x - > %m%n > log4j.appender.R.layout.contentType=text/plain > # stdout is set to Consoleappender > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > # stdout uses PatternLayout > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - > %m%n > log4j.rootCategory=DEBUG, R, stdout > > > What I would like to be able to do is to specify a different > location for the file property: > log4j.appender.R.file=d:\logs\weblog.log > > Any insight into how to go about this will be appreciated. > > Bisi > This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mixing different priority levels in different categories in the same appender (log4j.xml)
Sorry! It's working. I saw several messages but it was a mistake since the supposed debug messages were tagged as info messages. So, it's understandable that they appear all in the output. sorry again. On Fri, 2003-11-28 at 17:16, Pedro Salazar wrote: > Greetings, > > I'm trying to debug only in specific categories, however is not working > as I expected. For instance, I want put my log in this configuration: > > - category A in debug > - category A.B in info > - category A.B.C in debug > > I tried but it isn't working. It's printing all the debug information on > category A and below ( A.B, A.B.C ). I was expecting no debug > information from category "A.B". > > Let be: > > A = pt.ptinovacao.nginpro.uif > A.B = pt.ptinovacao.nginpro.uif.ws > A.B.C = pt.ptinovacao.nginpro.uif.ws.handlers.util > > Below are my log4j.xml. What is wrong? > > class="org.apache.log4j.DailyRollingFileAppender"> > value="${jboss.server.home.dir}/log/nginpro_uif.log" /> > > > > value="%d{dd MMM HH:mm:ss,SSS} %-5p [%C] %m%n"/> > > > > additivity="false"> > > > > > additivity="false"> > > > > > additivity="false"> > > > > > regards, > Pedro Salazar. -- PS [EMAIL PROTECTED] PGP:0E129E31D803BC61 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mixing different priority levels in different categories in the same appender (log4j.xml)
Greetings, I'm trying to debug only in specific categories, however is not working as I expected. For instance, I want put my log in this configuration: - category A in debug - category A.B in info - category A.B.C in debug I tried but it isn't working. It's printing all the debug information on category A and below ( A.B, A.B.C ). I was expecting no debug information from category "A.B". Let be: A = pt.ptinovacao.nginpro.uif A.B = pt.ptinovacao.nginpro.uif.ws A.B.C = pt.ptinovacao.nginpro.uif.ws.handlers.util Below are my log4j.xml. What is wrong? regards, Pedro Salazar. -- PS [EMAIL PROTECTED] PGP:0E129E31D803BC61 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Specifying Different Location for Log File
> Hello, > > I'm using log4j in a struts application. I'd like to specify a different > location for the log file. Presently, the log file is written to the > $[WSAD_ROOT] which is C:\Program Files\IBM\WebSphere Studio\Application > Developer\v5.1. I have specified different location in the > log4j.properties file but it does not write to the specified location. Is > there a way to do this in log4j? I have gone through the log4j API, FAQ > and documentation and I did not see any entry regarding writing log file > to a different location. I'm I missing something? > > Below is a sample entry in the log4j.properties file: > > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.maxBackupIndex=1 > log4j.appender.R.append=true > log4j.appender.R.bufferSize=8192 > log4j.appender.R.file=weblog.log > log4j.appender.R.bufferedIO=false > log4j.appender.R.immediateFlush=true > log4j.appender.R.maximumFileSize=102400 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.conversionPattern=%d [%t] %-5p %c %M.%L %x - %m%n > log4j.appender.R.layout.contentType=text/plain > # stdout is set to Consoleappender > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > # stdout uses PatternLayout > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n > log4j.rootCategory=DEBUG, R, stdout > > > What I would like to be able to do is to specify a different location for > the file property: > log4j.appender.R.file=d:\logs\weblog.log > > Any insight into how to go about this will be appreciated. > > Bisi > This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How stable is Chainsaw 2?
It's very stable, and very usable with features be added all the time, but the current functionality is very usable (I might be biased, I am one of the developers of the new version) You will need to download the jakarta-log4j module from the apache cvs, you can find the general procedure for retrieving cvs modules here: http://jakarta.apache.org/site/cvsindex.html >From there, modify the build.properties.sample file to suit your local sitation (like where a couple of jar files are located) and then use Ant: ant chainsaw Let us know if you have any troubles downloading and/or running it. cheers Paul Smith > -Original Message- > From: Robert Augustyn [mailto:[EMAIL PROTECTED] > Sent: Friday, 28 November 2003 5:24 PM > To: 'Log4J Users List' > Subject: How stable is Chainsaw 2? > > > Hi, > I wonder if Chainsaw 2 is a usable product? > If so where can I get it? > Thanks. > robert > > > __ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]