The moose likes Java in General and the fly likes setting the log4j.properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "setting the log4j.properties file " Watch "setting the log4j.properties file " New topic

setting the log4j.properties file

Job Anandam

Joined: Nov 09, 2006
Posts: 8
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.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

help me out of this
Job Anandam

Joined: Nov 09, 2006
Posts: 8
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
I agree. Here's the link: http://aspose.com/file-tools
subject: setting the log4j.properties file
Similar Threads
log4j:ERROR Attempted to append to closed appender named [null].
Log4j Problem
Logger(log4j) in Servlet
Getting error with Log4j in Tomcat