Module: Logger

Logger

A Simple Logger with levels

Author:
Source:

Members

<static> level

Set the level to use

Source:

<static> level

get the log level

Source:

<inner> levels :Object

The levels of logs

Type:
  • Object
Source:

Methods

<static> debug(message)

A debug log

Parameters:
Name Type Argument Description
message string

the message

... mixed <optional>

arguments to pass to log

Source:

<static> error(message)

A error log

Parameters:
Name Type Argument Description
message string

the message

... mixed <optional>

arguments to pass to log

Source:

<static> info(message)

A info log

Parameters:
Name Type Argument Description
message string

the message

... mixed <optional>

arguments to pass to log

Source:

<static> verbose(message)

A verbose log

Parameters:
Name Type Argument Description
message string

the message

... mixed <optional>

arguments to pass to log

Source:

<private, inner> log(logLevel, prefix, args)

The internal log function

Parameters:
Name Type Description
logLevel int

the log level that is allowed

prefix

the prefix that gets prepended to the message

args

and object of arguments, usually from global [arguments]

Source: