Class org.as2lib.env.log.logger.AlconLogger

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.logger.AlconLogger

Implemented Interfaces

Logger

Description

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.

Field Index

DEBUG, ERROR, FATAL, INFO, WARN

Method Index

new AlconLogger()

debug(), error(), fatal(), info(), isDebugEnabled(), isErrorEnabled(), isFatalEnabled(), isInfoEnabled(), isWarningEnabled(), warning()

Inherited from BasicClass

toString()

Constructor Detail

AlconLogger

public 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

Field Detail

DEBUG

static public DEBUG:Number
Alcon debug level.

INFO

static public INFO:Number
Alcon info level.

WARN

static public WARN:Number
Alcon warn level.

ERROR

static public ERROR:Number
Alcon error level.

FATAL

static public FATAL:Number
Alcon fatal level.

Method Detail

isDebugEnabled

public function isDebugEnabled(Void):Boolean

Checks if this logger is enabled for debug level messages.

Return

true if debug messages are logged

Specified By

isDebugEnabled() in org.as2lib.env.log.Logger

isInfoEnabled

public function isInfoEnabled(Void):Boolean

Checks if this logger is enabled for info level messages.

Return

true if info messages are logged

Specified By

isInfoEnabled() in org.as2lib.env.log.Logger

isWarningEnabled

public function isWarningEnabled(Void):Boolean

Checks if this logger is enabled for warning level messages.

Return

true if warning messages are logged

Specified By

isWarningEnabled() in org.as2lib.env.log.Logger

isErrorEnabled

public function isErrorEnabled(Void):Boolean

Checks if this logger is enabled for error level messages.

Return

true if error messages are logged

Specified By

isErrorEnabled() in org.as2lib.env.log.Logger

isFatalEnabled

public function isFatalEnabled(Void):Boolean

Checks if this logger is enabled for fatal level messages.

Return

true if fatal messages are logged

Specified By

isFatalEnabled() in org.as2lib.env.log.Logger

debug

public 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

messagethe message object to log

Specified By

debug() in org.as2lib.env.log.Logger

info

public 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

messagethe message object to log

Specified By

info() in org.as2lib.env.log.Logger

warning

public 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

messagethe message object to log

Specified By

warning() in org.as2lib.env.log.Logger

error

public 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

messagethe message object to log

Specified By

error() in org.as2lib.env.log.Logger

fatal

public 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

messagethe message object to log

Specified By

fatal() in org.as2lib.env.log.Logger