|
From: Leif M. <le...@ta...> - 2010-02-22 09:39:01
|
Ryan, The Java Service Wrapper has its own method of logging to the Windows Event Logs. It sounds like you have located the configuration for that. Log4J is an independent implementation that does not make use of the Wrapper's features. Looking at the following javadoc page, it says that it requires that you place a NTEventLogAppender.dll native library on the PATH. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/nt/NTEventLogAppender.html When Java specifies a specific Library Path, as is done with the Wrapper, Java does NOT search the PATH by default. Please go in and either add the location of the NTEventLogAppender.dll file to the library path with the following property: http://wrapper.tanukisoftware.org/doc/english/prop-java-library-path-n.html Or tell the Wrapper to append the PATH again: http://wrapper.tanukisoftware.org/doc/english/prop-java-library-path-append-system-path.html I would suggest the first option. Another possibility is that your log4j properties file is not being found correctly when the JVM is launched. Please try setting the following property and rerunning your application to make sure that the Wrapper is generating the Java command line that you expect: wrapper.java.command.loglevel=INFO Please let me know how this works for you, or if you have more questions. Cheers, Leif On Sun, Feb 21, 2010 at 12:35 PM, Ryan Connolly <ry...@gm...> wrote: > Hello wrapper users! > I am new to the list so please take it easy on me. I'm sorry if this has > been asked previously but I've had no luck finding any answers to my > question. I'm hoping y'all can help me out. > I have a requirement to perform some logging to the Windows Event Logs and > I'm just not getting it... I've been using the log4j NTEventLogAppender > successfully in my unit tests however no logging occurs while running > from WrapperSimpleApp. I've noticed in the logging docs a > "wrapper.syslog.loglevel" property so I went ahead and changed its value > from NONE to INFO, still no dice. Does anyone have any additional > information or experience with this? I'd really like to get this sorted > out! > Thanks to any in advance! > -Ryan |