Namespace: logger

logger

A logger that date and prepend logs to files.
Source:

Members

(static) path :string

The path to the file to add logs to.
Type:
  • string
Source:

(static) prepend :boolean

Whether to prepend the new log or not.
Type:
  • boolean
Source:

Methods

(static) log(message, fileopt, prependopt) → {string}

Prepend logs to a file.
Parameters:
Name Type Attributes Default Description
message string The log message.
file string <optional>
logger.path The filepath where to log the message to.
prepend boolean <optional>
logger.prepend Whether to prepend the new log or not.
Source:
Returns:
The full log message.
Type
string