Class avalon_logger

Object
   |
   +--avalon_logger

class avalon_logger

JavaScript-port of avalon logging interface.


 
Method Summary
 function debug(message)
           Logs a message with debugging priority.
 function debugging()
           read-only property you can use to test, if the logger should output debugging information.
 function error(exception)
           Logs a message with error priority.
 function getChildLogger(childCategory)
           Create a new child logger.
 function info(message)
           Logs a message with info priority.
 function warn(message)
           Logs a message with warn priority.

Method Detail

debug

function debug(message)
Logs a message with debugging priority.



debugging

function debugging()
read-only property you can use to test, if the logger should output debugging information. You can check this properties before calling debug() to avoid costly creation of debugging messages.

Note:

Due to a bug in jsdoc, properties aren't displayed in the documentation. debugging is a property, use logger.debugging instead of logger.debugging().



error

function error(exception)
Logs a message with error priority.



getChildLogger

function getChildLogger(childCategory)
Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name]



info

function info(message)
Logs a message with info priority.



warn

function warn(message)
Logs a message with warn priority.