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 EMERGENCYstring emergency System is unusable.
ALERTstring alert Action must be taken immediately.
CRITICALstring critical Critical condition.
ERRORstring error Error condition.
WARNINGstring warning Warning condition.
NOTICEstring notice Normal but significant condition.
INFOstring info Purely informational message.
DEBUGstring debug Application debug messages.
-
level :string
-
The log level. Refer to the Logger.LogLevels for available log levels.
Type:
- string
- Source:
- See: