Package dev.hypera.chameleon.logger
Class ChameleonInternalLogger
- java.lang.Object
-
- dev.hypera.chameleon.logger.ChameleonInternalLogger
-
- All Implemented Interfaces:
ChameleonLogger
@Internal public final class ChameleonInternalLogger extends Object implements ChameleonLogger
Internal Chameleon logger wrapper.
-
-
Constructor Summary
Constructors Constructor Description ChameleonInternalLogger(@NotNull ChameleonLogger logger)Chameleon internal logger constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(@NotNull String message, @NotNull Object... o)Log a debug message.@NotNull ChameleonLoggerdisableDebug()Disable debug logs.@NotNull ChameleonLoggerenableDebug()Enable debug logs.voiderror(@NotNull String message, @NotNull Object... o)Log an error message.voiderror(@NotNull String message, @NotNull Throwable throwable, @NotNull Object... o)Log an error message with an exception.voidinfo(@NotNull String message, @NotNull Object... o)Log an informational message.voidwarn(@NotNull String message, @NotNull Object... o)Log a warning message.voidwarn(@NotNull String message, @NotNull Throwable throwable, @NotNull Object... o)Log a warning message with an exception.
-
-
-
Constructor Detail
-
ChameleonInternalLogger
@Internal public ChameleonInternalLogger(@NotNull @NotNull ChameleonLogger logger)Chameleon internal logger constructor.- Parameters:
logger- Chameleon logger instance to use.
-
-
Method Detail
-
info
public void info(@NotNull @NotNull String message, @NotNull @NotNull Object... o)Log an informational message.- Specified by:
infoin interfaceChameleonLogger- Parameters:
message- Message to be logged.o- Message arguments.
-
debug
public void debug(@NotNull @NotNull String message, @NotNull @NotNull Object... o)Log a debug message.- Specified by:
debugin interfaceChameleonLogger- Parameters:
message- Message to be logged.o- Message arguments.
-
warn
public void warn(@NotNull @NotNull String message, @NotNull @NotNull Object... o)Log a warning message.- Specified by:
warnin interfaceChameleonLogger- Parameters:
message- Message to be logged.o- Message arguments.
-
warn
public void warn(@NotNull @NotNull String message, @NotNull @NotNull Throwable throwable, @NotNull @NotNull Object... o)Log a warning message with an exception.- Specified by:
warnin interfaceChameleonLogger- Parameters:
message- Message to be logged.throwable- Exception to be logged.o- Message arguments.
-
error
public void error(@NotNull @NotNull String message, @NotNull @NotNull Object... o)Log an error message.- Specified by:
errorin interfaceChameleonLogger- Parameters:
message- Message to be logged.o- Message arguments.
-
error
public void error(@NotNull @NotNull String message, @NotNull @NotNull Throwable throwable, @NotNull @NotNull Object... o)Log an error message with an exception.- Specified by:
errorin interfaceChameleonLogger- Parameters:
message- Message to be logged.throwable- Exception to be logged.o- Message arguments.
-
enableDebug
@NotNull public @NotNull ChameleonLogger enableDebug()
Enable debug logs.- Specified by:
enableDebugin interfaceChameleonLogger- Returns:
this.
-
disableDebug
@NotNull public @NotNull ChameleonLogger disableDebug()
Disable debug logs.- Specified by:
disableDebugin interfaceChameleonLogger- Returns:
this.
-
-