new BotLogger(optsopt) → {BotLogger}
A Logger with colored output.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Optional arguments for Properties
|
- Source:
Returns:
- Type
- BotLogger
Example
new BotLogger(opts)
Extends
- console.Console
Methods
blue(str) → {String}
Parameters:
Name | Type | Description |
---|---|---|
str |
String |
- Source:
Returns:
- Type
- String
cyan(str) → {String}
Parameters:
Name | Type | Description |
---|---|---|
str |
String |
- Source:
Returns:
- Type
- String
debug(…strs)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
strs |
* |
<repeatable> |
- Source:
error(…strs)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
strs |
* |
<repeatable> |
- Source:
green(str) → {String}
Parameters:
Name | Type | Description |
---|---|---|
str |
String |
- Source:
Returns:
- Type
- String
info(…strs)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
strs |
* |
<repeatable> |
- Source:
log(…strs)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
strs |
* |
<repeatable> |
- Source:
red(str) → {String}
Parameters:
Name | Type | Description |
---|---|---|
str |
String |
- Source:
Returns:
- Type
- String
warn(…strs)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
strs |
* |
<repeatable> |
- Source:
yellow(str) → {String}
Parameters:
Name | Type | Description |
---|---|---|
str |
String |
- Source:
Returns:
- Type
- String