|
News about release of nsjk2 2.0 beta2 ( tag is nsjk2_v2_beta2 )
What's new: Java-controlled logging so that both Tomcat 5 and AOLserver
share same logging mechanism with single logging configuration. Any underlying
java package (e.g. log4j or java.util.logging) can be used. See UserGuide.doc
for more information.
We will post source tar of nsjk2 to sourceforge once we add
java-implement tcl command enhancement.
-----detailed explanation of this feature follows (lifted from Section 5.4
of UserGuide.doc)-----
The latest nsjk2 (nsjk2_2 beta 2) module includes an option to leverage
java common-logging package to unify logging output. When this option is turned
on, every Ns_Log call from Aolserver will utilize common-logging api layer to
perform logging. This will result in Tomcat and Aolserver both using the same
common java layer to send and record its logging output.
The following files need to be modified in order to turn this feature on: Java.tcl â Uncomment âns_param loggerName ââ line. Set loggerName to something appropriate for your application.
ns_section "ns/module/nsjk2" ns_param serverRoot /home/suhti/AOL_TOMCAT/tomcat-5.0.19 #uncomment this line# ns_param loggerName MyAolServerLoggerName workers2.properties - Uncomment 3 classpath lines to enable log4j logging.
Make sure to specify right location to commons-logging.jar and log4j.jar. Also,
classpath must include where log4j.properties is located. If using package other
than log4j, change classpath appropriately.
[EMAIL PROTECTED]@/common/lib/commons-logging.jar
[EMAIL PROTECTED]@/common/lib/log4j-1.2.5.jar [EMAIL PROTECTED]@/conf Ãthis should be where log4j.properties is located. Log4j jar can be downloaded from http://logging.apache.org/log4j/docs/download.html Commons logging jar can be downloaded from http://jakarta.apache.org/site/binindex.cgi The following mapping shows Aolserver severity level to one of commons
loggingâs six levels:
AOL SERVER COMMONS
LOGGING
Fatal -> Fatal Error -> Error Warning -> Warn Notice -> Info Debug -> Debug Bug, Dev, others -> Trace
|
