Class: Logger

Logger()

Logger provides a console based logging system.

Constructor

new Logger()

Source:

Members

(static) Debug

The Debug Log Level
Source:

(static) Error

The Error Log Level
Source:

(static) Info

The Info Log Level
Source:

(static) Warn

The Warn Log Level
Source:

Methods

(static) getDefaultLogger() → {Logger}

Return the default logger
Source:
Returns:
The default Logger instance
Type
Logger

(static) logLevelToString(str) → {String}

Return a log level string from the given value
Parameters:
Name Type Description
str Integer log level value 0-3
Source:
Returns:
The log level string - debug, info, warn, error or unknown if not found
Type
String

(static) stringToLogLevel(str) → {Integer}

Parse a string and return a Log Level value
Parameters:
Name Type Description
str String The log level string - debug, info, warn, or error
Source:
Returns:
The log level value 0-3, or -1 if not found
Type
Integer

debug(…args)

Log a Debug message. printf style parameters are supported.
Parameters:
Name Type Attributes Description
args * <repeatable>
The log message and params
Source:

error(…args)

Log an Error message. printf style parameters are supported.
Parameters:
Name Type Attributes Description
args * <repeatable>
The log message and params
Source:

info(…args)

Log an Info message. printf style parameters are supported.
Parameters:
Name Type Attributes Description
args * <repeatable>
The log message and params
Source:

log(type, args)

Log a message with the given type and arguments. printf style parameters are supported.
Parameters:
Name Type Description
type String The log type (DEBUG, INFO, WARN, ERROR)
args Array.<Mixed> The printf args
Source:

warn(…args)

Log a Warning message. printf style parameters are supported.
Parameters:
Name Type Attributes Description
args * <repeatable>
The log message and params
Source: