Constructor
new Logger()
- Source:
- See:
Methods
info()
Log an informational bit of information
log(level, …args)
Subclasses must implement this.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
level |
string | 'info' or 'warn' to indicate the logging level |
|
args |
* |
<repeatable> |
args to pass directly to console.log |
warn()
Log a warning
(static) forPrefix(stringOrFalse) → {Logger}
Create a logger for the given prefix.
Parameters:
Name | Type | Description |
---|---|---|
stringOrFalse |
string | false | if false,returns a |
Returns:
- Type
- Logger