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.
 
 
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
 

-- AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Reply via email to