Package org.geysermc.geyser.extension
Class ExtensionLogger
java.lang.Object
org.geysermc.geyser.extension.ExtensionLogger
- All Implemented Interfaces:
GeyserLogger
Provides a proxy to the main logger that prefixes the extension name to messages
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a debug message to consolevoid
Logs an error message to consolevoid
Logs an error message and an exception to consolevoid
Logs an info message to consoleboolean
isDebug()
If debug is enabled for this loggervoid
setDebug(boolean debug)
Sets if the logger should print debug messagesvoid
Logs a severe message to consolevoid
Logs a severe message and an exception to consolevoid
Logs a warning message to console
-
Constructor Details
-
ExtensionLogger
-
-
Method Details
-
severe
Description copied from interface:GeyserLogger
Logs a severe message to console- Specified by:
severe
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
severe
Description copied from interface:GeyserLogger
Logs a severe message and an exception to console- Specified by:
severe
in interfaceGeyserLogger
- Parameters:
message
- the message to logerror
- the error to throw
-
error
Description copied from interface:GeyserLogger
Logs an error message to console- Specified by:
error
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
error
Description copied from interface:GeyserLogger
Logs an error message and an exception to console- Specified by:
error
in interfaceGeyserLogger
- Parameters:
message
- the message to logerror
- the error to throw
-
warning
Description copied from interface:GeyserLogger
Logs a warning message to console- Specified by:
warning
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
info
Description copied from interface:GeyserLogger
Logs an info message to console- Specified by:
info
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
debug
Description copied from interface:GeyserLogger
Logs a debug message to console- Specified by:
debug
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
setDebug
public void setDebug(boolean debug)Description copied from interface:GeyserLogger
Sets if the logger should print debug messages- Specified by:
setDebug
in interfaceGeyserLogger
- Parameters:
debug
- if the logger should print debug messages
-
isDebug
public boolean isDebug()Description copied from interface:GeyserLogger
If debug is enabled for this logger- Specified by:
isDebug
in interfaceGeyserLogger
-