Logger

object Logger

The Logger class provides a structured approach to logging messages with different log levels and offers flexibility in controlling the logging output.

Functions

Link copied to clipboard

Enables or disables the logging of WebSocket-related verbose logs.

Link copied to clipboard
fun log(msg: String, level: LogLevel = LogLevel.MC_LOG): Boolean

Emits a log message and calls the callback object.

Link copied to clipboard

Sets a callback that will be called whenever a log message is generated. It provides a way to extend the logging functionality, enabling users to integrate custom behaviors or additional actions based on log events.