Module: Logger

Logs selected message types to the console.
Source:

Members

(static, constant) LEVEL_INFO

Log messages marked as information, messages marked as warnings and messages marked as severe.
Source:

(static, constant) LEVEL_NONE

Log no messages.
Source:

(static, constant) LEVEL_SEVERE

Log messages marked as severe.
Source:

(static, constant) LEVEL_WARNING

Log messages marked as warnings and messages marked as severe.
Source:

Methods

(static) getLoggingLevel() → {Number}

Indicates the current logging level.
Source:
Returns:
The current logging level.
Type
Number

(static) log(level, message)

Logs a specified message at a specified level.
Parameters:
Name Type Description
level Number The logging level of the message. If the current logging level allows this message to be logged it is written to the console.
message String The message to log. Nothing is logged if the message is null or undefined.
Source:

(static) setLoggingLevel(level)

Set the logging level used by subsequent invocations of the logger.
Parameters:
Name Type Description
level Number The logging level, one of Logger.LEVEL_NONE, Logger.LEVEL_SEVERE, Logger.LEVEL_WARNING, or Logger.LEVEL_INFO.
Source: