new Logger( [level] [, loggerFunction])
Creates a new Logger object
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
level |
string |
<optional> |
The log level. Refer to Logger.LogLevels. |
loggerFunction |
object |
<optional> |
The function to write log information. |
- Source:
Members
-
<static, constant> LogLevels :string
-
The available log levels.
Type:
- string
- Source:
Properties:
Name Type Default Description EMERGENCY
string emergency System is unusable.
ALERT
string alert Action must be taken immediately.
CRITICAL
string critical Critical condition.
ERROR
string error Error condition.
WARNING
string warning Warning condition.
NOTICE
string notice Normal but significant condition.
INFO
string info Purely informational message.
DEBUG
string debug Application debug messages.
-
level :string
-
The log level. Refer to the Logger.LogLevels for available log levels.
Type:
- string
- Source:
- See: