Namespace: logging

system. logging

The system.logging library defines functions and classes which implement a flexible event logging system for applications and libraries.

Author:
License:

Example

var logger = Log.getLogger('channel') ;

var target = new ConsoleTarget
({
    includeChannel      : true  ,
    includeDate         : false ,
    includeLevel        : true  ,
    includeLines        : true  ,
    includeMilliseconds : true  ,
    includeTime         : true
}) ;

target.filters = ['*'] ;
target.level   = LoggerLevel.ALL ;

logger.debug( 'hello {0}, love it.' , 'VEGAS' ) ;
logger.critical( 'hello {0}, it\'s critical.' , 'VEGAS' ) ;
logger.info( 'hello, my name is {0}' , 'VEGAS' ) ;
logger.error( 'hello {0}, an error is invoked.' , 'VEGAS' ) ;
logger.warning( 'hello {0}, don\'t forget me.' , 'VEGAS' ) ;
logger.wtf( 'hello {0} ! WHAT ??' , 'VEGAS' ) ;

Classes

Logger
A Logger object is used to log messages for a specific system or application components.
LoggerEntry
LoggerFactory
This factory provides pseudo-hierarchical logging capabilities with multiple format and output options.
LoggerLevel
The logger levels that is used within the logging framework.
LoggerTarget
Use the LoggerTarget objects to display, store, or pass log messages to another destination.

Namespaces

targets
This package contains all LoggerTarget implementations are used to display, store, or pass log messages to another destination.

Members


<constant> Log :system.logging.LoggerFactory

The singleton factory to generates all the loggers in your application.

The singleton factory to generates all the loggers in your application.

Type:

<constant> strings

The enumeration of all string expressions in the logging engine.

Methods


isLoggable(target)

Indicates if the specific objet is Loggable.

Parameters:
Name Type Description
target object

The object to evaluate.

Returns:

true if the object is Loggable.