[This is preliminary documentation and is subject to change.]
The Logger type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| DisableFileLogging()()()() | Disables all file logging (sets all LogFileOptions to false). | |
| Log(LogType, String, array<Object>[]()[][]) | Adds a message to the server log.
Depending on server configuration and log category, message can be shown in console, logged to file, both, or neither. | |
| LogAndReportCrash(String, String, Exception, Boolean) | Logs and reports a crash or an unhandled exception.
Details are logged, and a crash report may be submitted to fCraft.net.
Note that this method may take several seconds to finish,
since it gathers system information and possibly communicates to fCraft.net. | |
| LogToConsole(String) | Logs a message of type ConsoleOutput, strips colors,
and splits into multiple messages at newlines.
Use this method for all messages of LogType.ConsoleOutput |