Module: lib/common/logger

Module for logging events of the Whiteflag API

Source:
Tutorials:

Members

(inner, constant) levels :Object

Defines the logging levels

Type:
  • Object
Source:

Methods

(inner) debug(module, message)

Logs debug events (level 5)

Parameters:
Name Type Description
module string

name of the module that makes the log

message string

the message to log

Source:

(inner) error(module, message)

Logs error events (level 2)

Parameters:
Name Type Description
module string

name of the module that makes the log

message string

the message to log

Source:

(inner) fatal(module, message)

Logs fatal events (level 1)

Parameters:
Name Type Description
module string

name of the module that makes the log

message string

the message to log

Source:

(inner) getLogLevel(callback)

Returns current loglevel

Parameters:
Name Type Description
callback function
Source:

(inner) info(module, message)

Logs informational events (level 4)

Parameters:
Name Type Description
module string

name of the module that makes the log

message string

the message to log

Source:

(inner) trace(module, message)

Logs trace events (level 6)

Parameters:
Name Type Description
module string

name of the module that makes the log

message string

the message to log

Source:

(inner) warn(module, message)

Logs warning events (level 3)

Parameters:
Name Type Description
module string

name of the module that makes the log

message string

the message to log

Source:

Type Definitions

loglevel

Sets new logging level

Type:
  • number
Source: