Console
Constructors
new Console()
new Console(opts): Console
Parameters
| Parameter | Type |
|---|---|
opts | ConsoleOptions |
Returns
Methods
debug()
debug(...input): void
Writes the formatted input to the debug log file.
This function does not invoke text rendering mode, so it can safely be used when rendering with the Canvas API.
Parameters
| Parameter | Type |
|---|---|
...input | unknown[] |
Returns
void
error()
error(...input): void
Logs the formatted input to the screen as red text.
Parameters
| Parameter | Type |
|---|---|
...input | unknown[] |
Returns
void
log()
log(...input): void
Logs the formatted input to the screen as white text.
Parameters
| Parameter | Type |
|---|---|
...input | unknown[] |
Returns
void
print()
print(s): void
Prints string s to the console on the screen, without any formatting applied.
Newline is not appending to the end of the string.
Parameters
| Parameter | Type | Description |
|---|---|---|
s | string | The text to print to the console. |
Returns
void
printErr()
printErr(s): void
Prints string s to the debug log file, without any formatting applied.
Newline is not appending to the end of the string.
This function does not invoke text rendering mode, so it can safely be used when rendering with the Canvas API.
Parameters
| Parameter | Type | Description |
|---|---|---|
s | string | The text to print to the log file. |
Returns
void
trace()
trace(...input): void
Logs the formatted input to the screen as white text,
including a stack trace of where the function was invoked.
Parameters
| Parameter | Type |
|---|---|
...input | unknown[] |
Returns
void
warn()
warn(...input): void
Logs the formatted input to the screen as yellow text.
Parameters
| Parameter | Type |
|---|---|
...input | unknown[] |
Returns
void