Log(name) common/util/log.js, line 17
Creates a new logger with the given name
Argument | Type | Description |
---|---|---|
name |
String | String to tag messages from the logger with. |
Static Properties
-
Log.DEBUG common/util/log.js, line 79
-
Log level that displays all messages
-
Log.ERROR common/util/log.js, line 97
-
Log level that displays only errors
-
Log.INFO common/util/log.js, line 85
-
Log level that displays all messages except debug messages
-
Log.level common/util/log.js, line 111
-
The current logging level. Change this to Log.INFO, Log.WARN, Log.ERROR, or Log.NONE to adjust how much logging is done.
- Log.INFO
-
Log.NONE common/util/log.js, line 103
-
Log level that displays no messages
-
Log.WARN common/util/log.js, line 91
-
Log level that displays warnings and errors
Instance Properties
-
name: String
-
String to tag messages from the logger with.
Instance Methods
-
debug() common/util/log.js, line 37
-
Prints a debug message. Takes an arbitrary number of arguments.
-
error() common/util/log.js, line 64
-
Prints an error message. Takes an arbitrary number of arguments.
-
info() common/util/log.js, line 46
-
Prints an info message. Takes an arbitrary number of arguments.
-
warn() common/util/log.js, line 55
-
Prints a warning message. Takes an arbitrary number of arguments.