Class: Logger

Logger(options)

Logger class

Constructor

new Logger(options)

Create new Logger

Parameters:
Name Type Description
options object

The options

Properties
Name Type Description
recordDate boolen

Whether to log date with the log.

Source:
Returns:

Logger

Methods

debug(content, tags) → {string}

Shortcut for log(content, "debug", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

debug(content, tags) → {string}

Shortcut for log(content, "debug", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

error(content, tags) → {string}

Shortcut for log(content, "error", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

error(content, tags) → {string}

Shortcut for log(content, "error", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

info(content, tags) → {string}

Shortcut for log(content, "info", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

info(content, tags) → {string}

Shortcut for log(content, "info", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

log(content, type, tags) → {string}

Log text

Parameters:
Name Type Default Description
content string

The content

type string log

The type of that log

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

log(content, type, tags) → {string}

Log text

Parameters:
Name Type Default Description
content string

The content

type string log

The type of that log

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

notice(content, tags) → {string}

Shortcut for log(content, "notice", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

notice(content, tags) → {string}

Shortcut for log(content, "notice", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

warn(content, tags) → {string}

Shortcut for log(content, "warn", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

warn(content, tags) → {string}

Shortcut for log(content, "warn", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

Logger(options)

Logger class

Constructor

new Logger(options)

Create new Logger

Parameters:
Name Type Description
options object

The options

Properties
Name Type Description
recordDate boolen

Whether to log date with the log.

Source:
Returns:

Logger

Methods

debug(content, tags) → {string}

Shortcut for log(content, "debug", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

debug(content, tags) → {string}

Shortcut for log(content, "debug", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

error(content, tags) → {string}

Shortcut for log(content, "error", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

error(content, tags) → {string}

Shortcut for log(content, "error", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

info(content, tags) → {string}

Shortcut for log(content, "info", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

info(content, tags) → {string}

Shortcut for log(content, "info", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

log(content, type, tags) → {string}

Log text

Parameters:
Name Type Default Description
content string

The content

type string log

The type of that log

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

log(content, type, tags) → {string}

Log text

Parameters:
Name Type Default Description
content string

The content

type string log

The type of that log

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

notice(content, tags) → {string}

Shortcut for log(content, "notice", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

notice(content, tags) → {string}

Shortcut for log(content, "notice", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

warn(content, tags) → {string}

Shortcut for log(content, "warn", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string

warn(content, tags) → {string}

Shortcut for log(content, "warn", tags)

Parameters:
Name Type Description
content string

The content

tags array

The tags of that log.

Source:
Returns:

text The text that was logged

Type
string