new GmeLogger()
Describes common API for loggers on both client and server side.
- Source:
Methods
debug(…message)
Logs debug message.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
* |
<repeatable> |
The message of the log. |
- Source:
error(…message)
Logs error message
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
* |
<repeatable> |
The message of the log. |
- Source:
fork(name, asIsopt) → {GmeLogger}
Creates a new logger with the same settings and a name that is an augmentation of this logger and the provided string. If the second argument is true - the provided name will be used as is.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string | The augmentation of the initial namespace of the logger. |
||
asIs |
boolean |
<optional> |
false | If true it will be a replacement of the original namespace. |
- Source:
Returns:
The resulting logger.
- Type
- GmeLogger
info(…message)
Logs info message
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
* |
<repeatable> |
The message of the log. |
- Source:
warn(…message)
Logs warning message
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
* |
<repeatable> |
The message of the log. |
- Source: