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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a debug message to consolevoidLogs an error message to consolevoidLogs an error message and an exception to consolevoidLogs an info message to consolebooleanisDebug()If debug is enabled for this loggervoidsetDebug(boolean debug)Sets if the logger should print debug messagesvoidLogs a severe message to consolevoidLogs a severe message and an exception to consolevoidLogs a warning message to console
-
Constructor Details
-
ExtensionLogger
-
-
Method Details
-
severe
Description copied from interface:GeyserLoggerLogs a severe message to console- Specified by:
severein interfaceGeyserLogger- Parameters:
message- the message to log
-
severe
Description copied from interface:GeyserLoggerLogs a severe message and an exception to console- Specified by:
severein interfaceGeyserLogger- Parameters:
message- the message to logerror- the error to throw
-
error
Description copied from interface:GeyserLoggerLogs an error message to console- Specified by:
errorin interfaceGeyserLogger- Parameters:
message- the message to log
-
error
Description copied from interface:GeyserLoggerLogs an error message and an exception to console- Specified by:
errorin interfaceGeyserLogger- Parameters:
message- the message to logerror- the error to throw
-
warning
Description copied from interface:GeyserLoggerLogs a warning message to console- Specified by:
warningin interfaceGeyserLogger- Parameters:
message- the message to log
-
info
Description copied from interface:GeyserLoggerLogs an info message to console- Specified by:
infoin interfaceGeyserLogger- Parameters:
message- the message to log
-
debug
Description copied from interface:GeyserLoggerLogs a debug message to console- Specified by:
debugin interfaceGeyserLogger- Parameters:
message- the message to log
-
setDebug
public void setDebug(boolean debug)Description copied from interface:GeyserLoggerSets if the logger should print debug messages- Specified by:
setDebugin interfaceGeyserLogger- Parameters:
debug- if the logger should print debug messages
-
isDebug
public boolean isDebug()Description copied from interface:GeyserLoggerIf debug is enabled for this logger- Specified by:
isDebugin interfaceGeyserLogger
-