logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishna srinivasan <jaguaa...@yahoo.co.uk>
Subject RE: DailyRollingFileAppender - keep on rolling ???
Date Thu, 02 May 2002 09:59:51 GMT
Hi all,
i'm having problems running chainsaw from the command
line. I'm getting the following error.

****
log4j:ERROR Could not connect to remote log4j server
at [localhost ]. We will try again later.
java.net.SocketException: connect (code=10061)
        at
java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:313)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
        at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
        at java.net.Socket.<init>(Socket.java:269)
        at java.net.Socket.<init>(Socket.java:125)
        at
org.apache.log4j.net.SocketAppender.connect(SocketAppender.java:208)
        at
org.apache.log4j.net.SocketAppender.activateOptions(SocketAppender.java:162)
        at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:249)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:125)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:89)
        at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:644)
        at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:602)
        at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:503)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:409)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:435)
        at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:454)
        at
org.apache.log4j.LogManager.<clinit>(LogManager.java:145)
        at
org.apache.log4j.Category.getInstance(Category.java:551)
        at
com.puppycrawl.tools.chainsaw.Main.<clinit>(Main.java:59)
log4j:WARN No such property [conversionPattern] in
org.apache.log4j.xml.XMLLayout.
[main] INFO com.puppycrawl.tools.chainsaw.Main -
Unable to create the action to load XML files
java.lang.SecurityException: class
"org.xml.sax.EntityResolver"'s signer informa
tion does not match signer information of other
classes in the same package
        at
java.lang.ClassLoader.checkCerts(ClassLoader.java:513)
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:476)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at
java.net.URLClassLoader.access$1(URLClassLoader.java:216)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:191)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
        at java.lang.ClassLoader.defineClass0(Native
Method)
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:477)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at
java.net.URLClassLoader.access$1(URLClassLoader.java:216)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:191)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
        at java.lang.ClassLoader.defineClass0(Native
Method)
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:477)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at
java.net.URLClassLoader.access$1(URLClassLoader.java:216)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:191)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
        at
com.puppycrawl.tools.chainsaw.LoadXMLAction.<init>(LoadXMLAction.java:80)
        at
com.puppycrawl.tools.chainsaw.Main.<init>(Main.java:78)
        at
com.puppycrawl.tools.chainsaw.Main.main(Main.java:207)


*****

Any suggestions will help me greatly.

thanks,
Krishna

--- tamir <tamir@movious.com> wrote:
> Hi,
> Knowing I'm not the only one suffering from the
> rolling appender is good
> :)-..
> My file rolls every day at midnight, however,
> sometimes the previous day log
> is saved and sometimes it just deleted (rolling,
> without saving the file...)
> 
> I tried both with append true and false, and It
> didn't succeed to solve the
> logging mystery.
> 
> Maybe some one can share a good configuration of the
> rolling appender?
> 
> Tnx in advance,
> Tamir
> 
> 
> 
> -----Original Message-----
> From: Tim Sawyer [mailto:tsawyer@nildram.co.uk]
> Sent: Wednesday, May 01, 2002 8:12 PM
> To: Log4J Users List
> Subject: RE: DailyRollingFileAppender
> 
> 
> On Tue, 2002-04-30 at 23:15, Steve Cohen wrote:
> > Oops, I was wrong.  The rollovers DO occur, but
> not as I expected.  I
> guess I didn't read the doc carefully enough.  I was
> expecting a file named
> BadExample.2002-04-30-18-01.log.  Instead, I find
> the file is called
> BadExample.log.2002-04-30-18-01.  
> > 
> > Is there any way to tweak this beast to perform as
> I wish it to?
> 
> I'm having problems with getting the
> DailyRollingThing working too.  I
> think it doesn't work if append is set to true, but
> I have to wait until
> my log rolls over at midnight to check this :-)
> 
> You can change the filename format (I think, I've
> never done this) by
> changing your config to:
> 
> >
> log4j.appender.R.DatePattern=yyyy-MM-dd-HH-mm'.log'
> 
> Tim.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message