Access keys

AlconLogger

Kind of class: class
Inherits from: BasicClass
Implements:
Author: Simon Wacker
Classpath: org.as2lib.env.log.logger.AlconLogger
File last modified: Sunday, 10 July 2005, 17:12:34
AlconLogger delegates all messages to the
net.hiddenresource.util.Debug.trace method.

Using this class instead of the Debug class in your application
directly enables you to switch between almost every available Logging API without
having to change the logging calls but just the configuration on startup.

Every global configuration must be done via the static methods on the
Debug class itself.

Constructor

AlconLogger

function AlconLogger (
recursiveTracing:Boolean)
Constructs a new AlconLogger instance.

The default value for recursiveTracing is true.

Parameters:
recursiveTracing:
(optional) determines whether to trace messages
recursively

Class properties

DEBUG

static DEBUG:Number = 0
(read,write)
Alcon debug level.

ERROR

static ERROR:Number = 3
(read,write)
Alcon error level.

FATAL

static FATAL:Number = 4
(read,write)
Alcon fatal level.

INFO

static INFO:Number = 1
(read,write)
Alcon info level.

WARN

static WARN:Number = 2
(read,write)
Alcon warn level.

Instance methods

debug

function debug (
message) : Void
Logs the passed-in message at debug level.

The message is only logged when the level is set to debug or a level
above.

The message is logged using the Alcon.trace method, passing
the debug level number.

Parameters:
message:
the message object to log
See also:

error

function error (
message) : Void
Logs the passed-in message at error level.

The message is only logged when the level is set to error or a level
above.

The message is logged using the Alcon.trace method, passing
the error level number.

Parameters:
message:
the message object to log
See also:

fatal

function fatal (
message) : Void
Logs the passed-in message at fatal level.

The message is only logged when the level is set to fatal or a level
above.

The message is logged using the Alcon.trace method, passing
the fatal level number.

Parameters:
message:
the message object to log
See also:

info

function info (
message) : Void
Logs the passed-in message at info level.

The message is only logged when the level is set to info or a level
above.

The message is logged using the Alcon.trace method, passing
the info level number.

Parameters:
message:
the message object to log
See also:

isDebugEnabled

function isDebugEnabled (
Void) : Boolean
Checks if this logger is enabled for debug level messages.
Returns:
true if debug messages are logged
See also:

isErrorEnabled

function isErrorEnabled (
Void) : Boolean
Checks if this logger is enabled for error level messages.
Returns:
true if error messages are logged
See also:

isFatalEnabled

function isFatalEnabled (
Void) : Boolean
Checks if this logger is enabled for fatal level messages.
Returns:
true if fatal messages are logged
See also:

isInfoEnabled

function isInfoEnabled (
Void) : Boolean
Checks if this logger is enabled for info level messages.
Returns:
true if info messages are logged
See also:

isWarningEnabled

function isWarningEnabled (
Void) : Boolean
Checks if this logger is enabled for warning level messages.
Returns:
true if warning messages are logged
See also:

warning

function warning (
message) : Void
Logs the passed-in message at warning level.

The message is only logged when the level is set to warning or a
level above.

The message is logged using the Alcon.trace method, passing
the warn level number.

Parameters:
message:
the message object to log