Package org.geysermc.geyser
Interface GeyserLogger
- All Superinterfaces:
org.geysermc.geyser.api.command.CommandSource,GeyserCommandSource
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidLogs an object to console if debug mode is enabledvoidLogs a debug message to consolevoidLogs and formats a message to console if debug mode is enabled, with the provided arguments.default voiddebug(GeyserSession session, String message, Object... arguments) A method to debug information specific to a session.voidLogs an error message to consolevoidLogs an error message and an exception to consoledefault booleanhasPermission(String permission) voidLogs an info message to consoledefault voidinfo(net.kyori.adventure.text.Component message) Logs an info component to consoledefault booleanbooleanisDebug()If debug is enabled for this loggerdefault Stringname()default @Nullable UUIDdefault voidsendMessage(@NonNull String message) voidsetDebug(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 consoleMethods inherited from interface org.geysermc.geyser.api.command.CommandSource
sendMessageMethods inherited from interface org.geysermc.geyser.command.GeyserCommandSource
connection, handle, locale, sendLocaleString, sendLocaleString, sendMessage
-
Method Details
-
severe
Logs a severe message to console- Parameters:
message- the message to log
-
severe
Logs a severe message and an exception to console- Parameters:
message- the message to logerror- the error to throw
-
error
Logs an error message to console- Parameters:
message- the message to log
-
error
Logs an error message and an exception to console- Parameters:
message- the message to logerror- the error to throw
-
warning
Logs a warning message to console- Parameters:
message- the message to log
-
info
Logs an info message to console- Parameters:
message- the message to log
-
info
default void info(net.kyori.adventure.text.Component message) Logs an info component to console- Parameters:
message- the message to log
-
debug
Logs a debug message to console- Parameters:
message- the message to log
-
debug
Logs an object to console if debug mode is enabled- Parameters:
object- the object to log
-
debug
Logs and formats a message to console if debug mode is enabled, with the provided arguments.- Parameters:
message- the message to logarguments- the arguments to replace in the message
-
setDebug
void setDebug(boolean debug) Sets if the logger should print debug messages- Parameters:
debug- if the logger should print debug messages
-
debug
A method to debug information specific to a session. -
isDebug
boolean isDebug()If debug is enabled for this logger -
name
- Specified by:
namein interfaceorg.geysermc.geyser.api.command.CommandSource
-
sendMessage
- Specified by:
sendMessagein interfaceorg.geysermc.geyser.api.command.CommandSource
-
isConsole
default boolean isConsole()- Specified by:
isConsolein interfaceorg.geysermc.geyser.api.command.CommandSource
-
playerUuid
- Specified by:
playerUuidin interfaceorg.geysermc.geyser.api.command.CommandSource
-
hasPermission
- Specified by:
hasPermissionin interfaceorg.geysermc.geyser.api.command.CommandSource
-