Constructor
new Logger(options)
Create new Logger
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
object |
The options Properties
|
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Returns:
text The text that was logged
- Type
- string