Methods
# addHandler(handler) → {Logger}
Name | Type | Description |
---|---|---|
handler |
Handler |
-
the handler must be an instance of Handler
- Type
- Error
- Type
- Logger
# getLabel(level) → {string}
Labels
Name | Type | Description |
---|---|---|
level |
integer |
- Type
- string
# getLevel(label) → {integer}
Level
Name | Type | Description |
---|---|---|
label |
string |
- Type
- integer
# logDebug(arguments) → {Logger}
log Debug message
ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
Name | Type | Description |
---|---|---|
arguments |
* |
- Since:
- 1.5.0
- Type
- Logger
# logError(arguments) → {Logger}
log Error message
ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
Name | Type | Description |
---|---|---|
arguments |
* |
- Since:
- 1.5.0
- Type
- Logger
# logFatal(arguments) → {Logger}
log Fatal message
ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
Name | Type | Description |
---|---|---|
arguments |
* |
- Since:
- 1.5.0
- Type
- Logger
# logInfo(arguments) → {Logger}
log Info message
ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
Name | Type | Description |
---|---|---|
arguments |
* |
- Since:
- 1.5.0
- Type
- Logger
# logTrace(arguments) → {Logger}
log Trace message
ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
Name | Type | Description |
---|---|---|
arguments |
* |
- Since:
- 1.5.0
- Type
- Logger
# logWarn(arguments) → {Logger}
log Warn message
ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
Name | Type | Description |
---|---|---|
arguments |
* |
- Since:
- 1.5.0
- Type
- Logger
# removeHandler(handler) → {Logger}
Name | Type | Description |
---|---|---|
handler |
Handler |
-
the handler must be an instance of Handler
- Type
- Error
- Type
- Logger