Author: | Unspecified |
Home Page: | |
Version: | Unspecified |
Release Tag: | Unknown |
Release Date: | Unknown |
JVM Required: | Unspecified |
License: | GNU Library General Public License |
Categories: | None |
Requirements: | |
Dependencies: | com.protomatter.pas.base, com.protomatter.pas.cron, com.protomatter.pas.cronmanager, com.protomatter.pas.event, com.protomatter.pas.eventmanager, com.protomatter.pas.init, com.protomatter.pas.jndi, com.protomatter.pas.jndi.spi, com.protomatter.pas.service, com.protomatter.pas.serviceimpl, com.protomatter.pas.servlet |
Externals: | None |
This will cause the contents of filename to be read into this file in-place. The imported file can also import other files, but be careful, since circular references are not checked and could result in an infinite loop. Importing other files is a nice way to segment configurations for different projects.Import filename
This will set the system-wide log mask to at or above "DEBUG", write log entries to the given file, and attach a print writer logger to the System.out or System.err streams.## ## Set the system-wide log mask to at or above ## the stated level name. ## Syslog.level = DEBUG ## ## Create a logger that writes to the given file ## (leave this property out to turn this off) ## Syslog.file = some file ## ## Create a logger that writes to either ## Sytem.out or System.err (leave this property ## out to turn this off) ## Syslog.printWriter = "out" or "err" ## ## Include the name of the thread in syslog output? ## Default is false. ## Syslog.logThreadName = "true" or "false" ## ## Include the name of the host in syslog output? ## Default is false. ## Syslog.logHostName = "true" or "false" ## ## Use a background thread to actually do the ## logging? Default is true. ## Syslog.backgroundLogging = "true" or "false"
You can also add and configure any logging class that implements the com.protomatter.syslog.Syslogger interface using the properties file. Simply specify the class of the logger like this:
WhereSyslog.logger.NAME = CLASSNAME
Those options will be assembled into a Properties object and passed to the init(...) method of the logger after the default constructor is called. If those steps succeed, the logger is added to Syslog with the addLogger(...) method. The loggers that come with PAS and can be used like this are:Syslog.logger.NAME.properties = key1=val1,key2=val2,...
Consult the javadoc for each to see what properties can be specified. The PrintWriterLog that also comes with PAS cannot be specified in the properties file because it needs a java.io.PrintWriter instance to connect to. Syslog uses a background thread to write log messages to loggers asynchronously so that calls to any of the logging methods will return immediately. Consult the javadoc for the package com.protomatter.syslog for more information on how to use it for logging.{@linkcom.protomatter.syslog.TimeRolloverLog com.protomatter.syslog.TimeRolloverLog} {@linkcom.protomatter.syslog.LengthRolloverLog com.protomatter.syslog.LengthRolloverLog} {@linkcom.protomatter.syslog.OpenFileLog com.protomatter.syslog.OpenFileLog} {@linkcom.protomatter.syslog.DatabaseLog com.protomatter.syslog.DatabaseLog}
PAS works very well with JServ, and can be used independantly in different servlet zones. This is a very important feature, as it means that one instance of JServ can support multiple PAS instances, one per zone. For this to work, you must have your wrapper.classpath set to only include the JDK's classes.zip, the JServ jar file, and the JSDK jar file. For each zone, you must then set the "repositories" property in the configuration file for that zone to be the list of all the jar files, zip files and directories you are going to need classes from for anything that you're doing in that zone. This works because JServ uses a separate classloader for each servlet zone.
To configure PAS to run in a given zone, add the following properties to the zone's configuration file:
PAS will be started when the zone it's defined in is loaded by JServ.## add PAS to the list of servlets to start when JServ starts servlets.startup=PAS ... ## define the PAS servlet, and give PAS its startup args servlet.PAS.code=com.protomatter.pas.PASServlet servlet.PAS.initArgs=properties=/path/to/pas.properties