new WpwLogger()
- Source
Extends
- SpmhCliLogger
Members
getLoggerInst
- Source
Methods
hookdone(msg, levelopt, failedopt, rtnopt) → {T|undefined}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
msg | any | message to print | |
level | SpmhLogLevel | <optional> | logging level, |
failed | boolean | <optional> | message to print |
rtn | T | <optional> |
- Source
Returns:
- Type:
- T |
undefined
hookstart(msg, levelopt) → {this}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
msg | string | | message to print | |
level | SpmhLogLevel | <optional> | logging level, |
- Source
Returns:
- Type:
- this
isWpLogLevel(level)
Evaluates if the specified value is a valid log-level, i.e.
Evaluates if the specified value is a valid log-level, i.e. a # between 0 and 5, inclusive
Parameters:
| Name | Type | Description |
|---|---|---|
level | any |
- Source
isWpwLogLevel(value)
Evaluates if the specified value is a valid log-level, i.e.
Evaluates if the specified value is a valid log-level, i.e. a # between 0 and 5, inclusive
Parameters:
| Name | Type | Description |
|---|---|---|
value | any |
- Source
toWpLogLevel(level) → {WebpackLogLevel}
Evaluates if the specified value is a valid log-level, i.e.
Evaluates if the specified value is a valid log-level, i.e. a # between 0 and 5, inclusive
Parameters:
| Name | Type | Description |
|---|---|---|
level | WpwLoggerLevel | |
- Source
Returns:
- Type:
- WebpackLogLevel
toWpwLogLevel(level) → {WpwLoggerLevel}
Parameters:
| Name | Type | Description |
|---|---|---|
level | WpwLoggerLevel | |
- Source
Returns:
- Type:
- WpwLoggerLevel
(static) isWpLogLevel(level)
Evaluates if the specified value is a valid log-level, i.e.
Evaluates if the specified value is a valid log-level, i.e. a # between 0 and 5, inclusive
Parameters:
| Name | Type | Description |
|---|---|---|
level | any |
- Source
(static) isWpwLogLevel(value)
Evaluates if the specified value is a valid log-level, i.e.
Evaluates if the specified value is a valid log-level, i.e. a # between 0 and 5, inclusive
Parameters:
| Name | Type | Description |
|---|---|---|
value | any |
- Source
(static) toWpLogLevel(level) → {WebpackLogLevel}
Evaluates if the specified value is a valid log-level, i.e.
Evaluates if the specified value is a valid log-level, i.e. a # between 0 and 5, inclusive
Parameters:
| Name | Type | Description |
|---|---|---|
level | WpwLoggerLevel | |
- Source
Returns:
- Type:
- WebpackLogLevel
(static) toWpwLogLevel(level) → {WpwLoggerLevel}
Parameters:
| Name | Type | Description |
|---|---|---|
level | WpwLoggerLevel | |
- Source
Returns:
- Type:
- WpwLoggerLevel