InterruptedIOException in WriterAppender and Thread.interrupt()

2006-08-21 Thread Patrick Wyss
hi there, i have problems with "InterruptedIOException"s that i get in my standalone application. i use log4j 1.2.9 on SunOS 5.8 when searching the archives i found the following message by ceki gülcü as answer to a similar problem: http://www.mail-archive.com/log4j-user@jakarta.apache.org

AW: using variables in log4j xml file

2006-08-22 Thread Patrick Wyss
farzad, as jake already pointed out, there are 2 solutions to your problem: 1. specify a system property by -D as described in the mail from 21. August 2006 22:17 or (and i guess this is what you are looking for) 2. if you want to access the OS environment property then you have to access it wit

Re: InterruptedIOException in WriterAppender and Thread.interrupt()

2006-08-22 Thread Patrick Wyss
gt; > > If you interrupt the thread doing the logging, what else would you > expect to happen? > > On 8/21/06, Patrick Wyss <[EMAIL PROTECTED]> wrote: > > hi there, > > > > i have problems with "InterruptedIOException"s that i get > in my sta

RE: SMTPAppender : how to specify the port ?

2006-08-23 Thread Patrick Wyss
i have a "AuthSMTPAppender" which i could easyly extend to set the port as well as the authentification. if you're interessted... > -Ursprüngliche Nachricht- > Von: DeMZed [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 22. August 2006 21:06 > An: 'Log4J Users List' > Betreff: SPAM: RE:

AW: AW: using variables in log4j xml file

2006-08-23 Thread Patrick Wyss
hi, > So, you've verified that the "env." scope works to look up OS > properties in Log4j? i didn't exactly had this verified on the command line at the time of my last post ;-) and: no, it doesn't work :-[ not outside of ant, that is. shame on me. > If this works, I guess I stand corrected on

AW: HowTo Disable Logging Output for classes using commons.logging

2006-08-29 Thread Patrick Wyss
you can also change the priorities programaticaly from your application: Logger.setLevel(Level level); maybe this is done within quarz??? (i doubt it) this is IMO not recomendable because it is not obvious and not changable without recompilation. so for the original poster: 1) are you 100% sure

AW: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
1) i think you have to set TriggeringLevel. i m running with: log4j.appender.EMAIL=org.apache.log4j.net.SMTPAppender log4j.appender.EMAIL.layout=org.apache.log4j.PatternLayout log4j.appender.EMAIL.layout.ConversionPattern=%d %-5p [%t] %c - %m%n log4j.appender.EMAIL.threshold=DEBUG log4j.appender.EM

chainsaw for non-xml files

2006-08-31 Thread Patrick Wyss
is there any possibility to run chainsaw on non-xml logfiles? any plans to do implement something in this direction? without even taking a look into the source (shame on me) i have the impression that with the ConversionPattern it should be possible to do something... i just think that the xml fi

AW: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
> > 1) i think you have to set TriggeringLevel. > I am using . I guess that's the > same. no! TriggeringLevel: an event with this level (or higher) will trigger the sending of a new email which contains all events that have a level>=threshold > host. But my monitor program (TCPMon) does not get

re: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
i just want to correct this for anyone reading this thread later: - triggeringLevel was an addition i wrote myself (as part of my authentificating SMTPAppender). it is not available in the standard SMTPAppender - in standard SMTP appender you can set the class name of the "EvaluatorClass" - the d

AW: chainsaw for non-xml files

2006-08-31 Thread Patrick Wyss
> app preferences). > > You can view an example receiver configuration from > Chainsaw's Welcome tab. > > > Scott Deboy > COMOTIV SYSTEMS > 111 SW Columbia Street Ste. 950 > Portland, OR 97201 > > Telephone: 503.224.7496 > Cell: 503.997.1367

AW: Spam: MaxBackupIndex

2006-09-13 Thread Patrick Wyss
MaxBackupIndex is only available in RollingFileAppender not in DailyRollingFileAppender. if you are interessted i can send you a modified DailyRollingFileappender that keeps only a limited amount of files (and zips old logs) cheers patrick > -Ursprüngliche Nachricht- > Von: nithya rajee

AW: DailyRollingFileAppender failing

2006-09-13 Thread Patrick Wyss
> I appreciate that this problem is OS specific (Windows 2003 > Server) and has windows may not be able to rename files if they are open in some applications. try ProcessExplorer (http://www.sysinternals.com/Utilities/ProcessExplorer.html) to see if a file is open by another process --

AW: Logging objects

2006-11-03 Thread Patrick Wyss
you can log anything with log4j :-] depending on what you want to do you can use one of the following json: http://www.json.org or xstream: http://xstream.codehaus.org/index.html and either change your log requests: log.debug( xstream.toXML(someObject)); or write your own Layout regards patrick