Members
(static) path :string
The path to the file to add logs to.
Type:
- string
(static) prepend :boolean
Whether to prepend the new log or not.
Type:
- boolean
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. |
Returns:
The full log message.
- Type
- string