OverviewSingleDeprecated

jsx3.util

class Logger.Manager

Object
->jsx3.lang.Object
  ->jsx3.util.Logger.Manager

class Logger.Manager
extends jsx3.lang.Object
Manager class for the logging system. The singleton instance of this class is configured with the logger configuration file specified by the system environment variable jsx_logger_config, or if that is not provided, by the default configuration file located at $GI/logger.xml.

The DTD of that configuration file is as follows:
<!ELEMENT configuration (handler | logger)* >
<!ELEMENT handler (property)* >
<!ATTLIST handler name CDATA #REQUIRED
                  class CDATA #REQUIRED
                  lazy (true|false) "false"
                  require (true|false) "false"
                  level (OFF|FATAL|ERROR|WARN|INFO|DEBUG|TRACE) #IMPLIED>
<!ELEMENT logger (property | handler-ref)* >
<!ATTLIST logger name CDATA #REQUIRED
                 useParent (true|false) "true"
                 level (OFF|FATAL|ERROR|WARN|INFO|DEBUG|TRACE) #IMPLIED>
<!-- Properties allow for bean-style configuration of handlers and loggers.
     The class should have a setter method corresponding to the name of the 
     property. -->
<!ELEMENT property (EMPTY)>
<!ATTLIST property name CDATA #REQUIRED
                   value CDATA #REQUIRED
                   eval (true|false) "false">
<!ELEMENT handler-ref (EMPTY)>
<!ATTLIST handler-ref name CDATA #REQUIRED>

Method Summary
void
Add a Handler instance to this manager's registry.
void
Add a Logger instance to the manager's registry.
jsx3.util.Logger.Handler
getHandler(strName : ?)
Returns a Handler from the manager's registry by name, or null if no such Handler is registered.
Array<String>
Returns a list containing the names of all the handlers registered with this manager.
jsx3.util.Logger
getLogger(strName : ?)
Returns a Logger from this manager's registry by name, or null if no such Logger is registered.
static jsx3.util.Logger.Manager
Singleton accessor method.
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf, toString
Method Detail

addHandler

void addHandler(objHandler : jsx3.util.Logger.Handler)
Add a Handler instance to this manager's registry.

Parameters:

objHandler

addLogger

void addLogger(objLogger : jsx3.util.Logger)
Add a Logger instance to the manager's registry.

Parameters:

objLogger

getHandler

jsx3.util.Logger.Handler getHandler(strName : ?)
Returns a Handler from the manager's registry by name, or null if no such Handler is registered.

Parameters:

strName

Returns:

 

getHandlerNames

Array<String> getHandlerNames()
Returns a list containing the names of all the handlers registered with this manager.

Returns:

 

getLogger

jsx3.util.Logger getLogger(strName : ?)
Returns a Logger from this manager's registry by name, or null if no such Logger is registered.

Parameters:

strName

Returns:

 

getManager

static jsx3.util.Logger.Manager getManager()
Singleton accessor method.

Returns: