Class LoggerManager
- java.lang.Object
-
- com.alessiodp.core.common.logging.LoggerManager
-
public class LoggerManager extends Object
-
-
Constructor Summary
Constructors Constructor Description LoggerManager(@NotNull ADPPlugin instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlog(@NotNull String message)Send a log messagevoidlog(@NotNull String message, boolean printConsole)Send a log info messagevoidlog(@NotNull String message, @NotNull Throwable throwable, boolean printConsole)Send a log info messagevoidlogDebug(@NotNull String message, boolean printConsole)Send a debug log messagevoidlogError(@NotNull String message)Send a log error messagevoidlogError(@NotNull String message, @NotNull Throwable throwable)Send a log error messagevoidlogWarn(@NotNull String message)Send a log warning messagevoidlogWarn(@NotNull String message, Throwable throwable)Send a log warning messagevoidreload(boolean debugEnabled, boolean saveToFile, String file, String logFormat)Reload logger manager
-
-
-
Constructor Detail
-
LoggerManager
public LoggerManager(@NotNull @NotNull ADPPlugin instance)
-
-
Method Detail
-
reload
public void reload(boolean debugEnabled, boolean saveToFile, String file, String logFormat)Reload logger manager- Parameters:
debugEnabled- toggle debug logsaveToFile- toggle save to filefile- file namelogFormat- format of the log output
-
log
public void log(@NotNull @NotNull String message)Send a log message- Parameters:
message- the message to save
-
log
public void log(@NotNull @NotNull String message, boolean printConsole)Send a log info message- Parameters:
message- the message to saveprintConsole- print the message on console
-
log
public void log(@NotNull @NotNull String message, @NotNull @NotNull Throwable throwable, boolean printConsole)Send a log info message- Parameters:
message- the message to savethrowable- the error message to printprintConsole- print the message on console
-
logWarn
public void logWarn(@NotNull @NotNull String message)Send a log warning message- Parameters:
message- the message to save
-
logWarn
public void logWarn(@NotNull @NotNull String message, Throwable throwable)Send a log warning message- Parameters:
message- the message to savethrowable- the error to print
-
logError
public void logError(@NotNull @NotNull String message)Send a log error message- Parameters:
message- the message to save
-
logError
public void logError(@NotNull @NotNull String message, @NotNull @NotNull Throwable throwable)Send a log error message- Parameters:
message- the message to savethrowable- the error to print
-
logDebug
public void logDebug(@NotNull @NotNull String message, boolean printConsole)Send a debug log message- Parameters:
message- the message to saveprintConsole- print the message on console
-
-