logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivasa Chinimilli (Rapidigm)" <srinivasa.chinimi...@infomove.com>
Subject RE: How do I set up log4j to log errors to the NT Event Logger
Date Wed, 04 Apr 2001 19:55:36 GMT
Does not require any code changes if your setting the log4j through
properties file.
But you need to include path for NTEventLogAppender.dll in (which is in
org/log4j/nt )the system classpath and some thing like this in properties
file.

log4j.appender.e=org.log4j.nt.NTEventLogAppender
log4j.appender.e.layout=org.log4j.PatternLayout
log4j.appender.e.Threshold=WARN
log4j.appender.e.layout.ConversionPattern=%c{1} %M - %m%n

obviously you need to add "e" in the rootCategory for the above addition in
properties file.

let me know if there is a problem

-srinivas

-----Original Message-----
From: Gary Graham [mailto:Gary.Graham@issdrm.com]
Sent: Wednesday, April 04, 2001 11:36 AM
To: 'log4j-user@jakarta.apache.org'
Subject: How do I set up log4j to log errors to the NT Event Logger


Hello all,

I am very new to log4j and was wondering if someone could tell me what
settings in the log4l.properties file I need to make and any code changes I
may need to make - to get the logged messages to go to the NT Event Viewer?

Thanks,

Gary Graham
ggraham@issdrm.com


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

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


Mime
View raw message