Namespace: Logger

utils~Logger

Logger Namespace

Since:
  • 1.0.0
Source:

Members

(static) DEBUG_PREFIX :string

The prefix for the debug level message.

Type:
  • string
Default Value:
  • '\x1b[2;37m[DEBUG]\x1b[0m'
Source:

(static) DONE_PREFIX :string

The prefix for the done level message.

Type:
  • string
Default Value:
  • '\x1b[92m[DONE]\x1b[0m'
Source:

(static) ERROR_PREFIX :string

The prefix for the error level message.

Type:
  • string
Default Value:
  • '\x1b[91m[ERROR]\x1b[0m'
Source:

(static) INFO_PREFIX :string

The prefix for the info level message.

Type:
  • string
Default Value:
  • '\x1b[96m[INFO]\x1b[0m'
Source:

(static) WARNING_PREFIX :string

The prefix for the warning level message.

Type:
  • string
Default Value:
  • '\x1b[93m[WARNING]\x1b[0m'
Source:

Methods

(static) debug(msg) → {void}

The function to log the debug level message to the console.

Parameters:
Name Type Description
msg string

The message string to be displayed.

Source:
Returns:
Type
void

(static) done(msg) → {void}

The function to log the done level message to the console.

Parameters:
Name Type Description
msg string

The message string to be displayed.

Source:
Returns:
Type
void

(static) error(msg) → {void}

The function to log the error level message to the console.

Parameters:
Name Type Description
msg string

The message string to be displayed.

Source:
Returns:
Type
void

(static) info()

The function to log the info level message to the console.

Source:

(static) warn(msg) → {void}

The function to log the warning level message to the console.

Parameters:
Name Type Description
msg string

The message string to be displayed.

Source:
Returns:
Type
void