Set up NTEventLogAppender
- Copy NTEventLogAppender.dll to the system32 directory
- Edit log4j.properties
log4j.rootCategory=DEBUG, NTEvent
log4j.appender.NTEvent
=org.apache.log4j.nt.NTEventLogAppender
log4j.appender.NTEvent.layout
=org.apache.log4j.PatternLayout
log4j.appender.NTEvent.layout.ConversionPattern
=%p: %c – %m