Logger
Index
Functions
Flush
Writes logger content to file and clears all buffers.
Returns void
Log
Writes message to the log, using specified log prefix.
More about capabilitiesIt will be writed to
[<prefix>/D] <message>
as-is, where prefix will be MOD if it not specified.Parameters
message: string
message to be logged
optionalprefix: string
prefix of the message, can be used to filter log
Returns void
LogError
Logs java Throwable with full stack trace to.
Parameters
error: Throwable
java Throwable to be logged
Returns void
debug
- since: 2.2.0b77
Writes debugging message to log, using specified tag.
More about capabilitiesIt will be writed to
[<tag>/D] <message>
as-is.Parameters
tag: string
message: string
Returns void
error
- since: 2.2.0b77
Writes error message to log, using specified tag. If it writed before game startup finish, debugging log with all messages will appear.
More about capabilitiesIt will be writed to
[<tag>/E] <message>
as-is. If error also provided, it will be appended with same tag above error message.Parameters
tag: string
message: string
optionalerror: Throwable
Returns void
info
- since: 2.2.0b77
Writes information message to log, using specified tag.
More about capabilitiesIt will be writed to
[<tag>/I] <message>
as-is.Parameters
tag: string
message: string
Returns void
Module used to log messages to Inner Core and internal log.