Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting the log4j.properties file

 
Job Anandam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to direct the log details to the NT EVENTLog. i tried out the following setting
// log4j.properties file content
log4j.rootCategory=DEBUG, dest1
log4j.appender.dest1=org.apache.log4j.nt.NTEventLogAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%-5p: %m%n

but i recieve the following error
java.lang.UnsatisfiedLinkError: no NTEventLogAppender in java.library.path

but the same executes when i have
log4j.appender.dest1=org.apache.log4j.ConsoleAppender

help me out of this
 
Job Anandam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i ve got it ..
you've have a NTEventLogAppender.dll shipped along with the log4j release.all you've got to do is to register your dll in the following directory and let the windows take care of the rest

C:\windows\system32 directory
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic