Module: logger

Methods

(static) getLogger(optionsopt)

Returns a logger.

Parameters:
Name Type Attributes Description
options Object <optional>

Options for configuring the logger

Properties
Name Type Attributes Description
console Boolean <optional>

Whether or not to log to the console. Default true.

logLevel String <optional>

The log level to use. (error, warn, info, verbose, debug, silly). Defaults to warn.

fileName String <optional>

File to log to. Defaults to none (console only).

module Object <optional>

The module the logger is used from. Used to put the file name in the log message.

json Boolean <optional>

Whether or not to format message as JSON. Default false.

verboseLabel Boolean <optional>

Whether or not to include the verbose label in log. Default false.

Returns:

An instance of a logger