Skip navigation links
org.safs.tools.logs

Class SAFSLOGS

AUTOLAUNCH

TRUE--Enable this class to launch the STAF service if it is not already running.
FALSE--Do not try to launch the service if it is not running.

The Driver's 'safs.driver.autolaunch' command-line option is also queried for this setting and overrides any other configuration source setting.

The default AUTOLAUNCH setting is TRUE.

OVERWRITE

TRUE for the service to delete/overwrite existing logs of the same name. If this parameter is not TRUE, the service will NOT overwrite existing logs and no logs will be generated. The files will have to be moved or renamed before logging will commence.

The default OVERWRITE value is FALSE

CAPXML

TRUE for the service to "cap" the XML logs when they are closed. XML logs when closed are not yet valid XML because they do not have the standard XML header, nor a single root node. This allows multiple logs to be appended together before they are made into valid XML.

The default CAPXML value is FALSE. Most users will want to provide this value set to TRUE, unless they intend to cap the XML themselves at some later time.

TRUNCATE

Truncate messages and descriptions to a fixed length. By default, Truncate is disabled. When enabled, the default truncate length for messages and descriptions is 128 characters each.
The user can change the truncate length by sending an integer > 0 as the value of the option.
Ex: TRUNCATE 256
TRUNCATE ON -- same as TRUNCATE with no option value. Enables truncate mode.
TRUNCATE OFF -- disables truncate mode.

The default CAPXML value is FALSE. Most users will want to provide this value set to TRUE, unless they intend to cap the XML themselves at some later time.

ITEM

The full class name for an alternate LogsInterface class for SAFSLOGS. This parameter is only needed if an alternate/custom LogsInterface is used. The class must be findable by the JVM and Class.forName functions.

The default ITEM value is org.safs.tools.logs.SAFSLOGS

SERVICECLASS

The full class name for an alternate service class for SAFSLOGS. This parameter is only needed if an alternate/custom service is used. This class must be findable by the JVM. This setting, if provided, will cause any SERVICEJAR setting to be ignored.

The default SERVICECLASS value is org.safs.staf.service.logging.v2.SAFSLoggingService

SERVICEJAR

The full path and name for an alternate service JAR for SAFSLOGS. This parameter is only needed if an alternate/custom service is used. This class must be findable by the JVM. If a value is specified for SERVICECLASS, then this setting is ignored.

The default SERVICEJAR value is [safsroot]/lib/safslogs.jar

SERVICE

The service name for an alternate service instead of "SAFSLOGS". This parameter is only needed if an alternate/custom service is used. Note: All of the standard SAFS Framework tools currently expect the default "SAFSLOGS" service name.

OPTIONS

Any additional PARMS to be sent to the service upon initialization. We already handle sending the DIR parameter with the path obtained from the Driver. Any other options needed for service initialization should be specified here. There typically will be none.
Author:
Carl Nagle DEC 14, 2005
Skip navigation links

Copyright © SAS Institute. All Rights Reserved.