WpwLogger

new WpwLogger()

Extends

  • SpmhCliLogger

Members

getLoggerInst

Methods

hookdone(msg, levelopt, failedopt, rtnopt) → {T|undefined}

Parameters:
NameTypeAttributesDescription
msgany

message to print

levelSpmhLogLevel<optional>

logging level, 0 for 'off', use undefined for 'always'

failedboolean<optional>

message to print

rtnT<optional>
Returns:
Type: 
T | undefined

hookstart(msg, levelopt) → {this}

Parameters:
NameTypeAttributesDescription
msgstring | undefined

message to print

levelSpmhLogLevel<optional>

logging level, 0 for 'off', use undefined for 'always'

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:
NameTypeDescription
levelany

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:
NameTypeDescription
valueany

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:
NameTypeDescription
levelWpwLoggerLevel | WebpackLogLevel | undefined
Returns:
Type: 
WebpackLogLevel

toWpwLogLevel(level) → {WpwLoggerLevel}

Parameters:
NameTypeDescription
levelWpwLoggerLevel | WebpackLogLevel | undefined
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:
NameTypeDescription
levelany

(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:
NameTypeDescription
valueany

(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:
NameTypeDescription
levelWpwLoggerLevel | WebpackLogLevel | undefined
Returns:
Type: 
WebpackLogLevel

(static) toWpwLogLevel(level) → {WpwLoggerLevel}

Parameters:
NameTypeDescription
levelWpwLoggerLevel | WebpackLogLevel | undefined
Returns:
Type: 
WpwLoggerLevel