Package top.focess.qq.api.util.logger
Class FocessLogger
- java.lang.Object
-
- top.focess.qq.api.util.logger.FocessLogger
-
public class FocessLogger extends Object
This is a logger util class.
-
-
Constructor Summary
Constructors Constructor Description FocessLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsoleInput(String message)Log a message inputted by console with DEBUG levelvoiddebug(String message)Log a message with DEBUG levelvoiddebugLang(String key, Object... objects)Log a message with DEBUG levelvoidfatal(String message)Log a message with ERROR levelvoidfatalLang(String key, Object... objects)Log a message with ERROR levelvoidinfo(String message)Log a message with INFO levelvoidinfoLang(String key, Object... objects)Log a message with INFO levelbooleanisDebugOutput()Get debug output statusvoidthr(String message, Throwable e)Log a message and a throwable (or exception) with ERROR levelvoidthrLang(String key, Throwable e, Object... objects)Log a message and a throwable (or exception) with ERROR levelvoidtoggleDebugOutput()Toggle debug output Note: if debug output is true, the debug message will be outputted as INFO level and DEBUG level, otherwise, it will be outputted as DEBUG levelvoidtrace(String message, Throwable e)Log a message and a throwable (or exception) with TRACE level
-
-
-
Method Detail
-
info
public void info(String message)
Log a message with INFO level- Parameters:
message- the message need to info
-
infoLang
public void infoLang(String key, Object... objects)
Log a message with INFO level- Parameters:
key- the language keyobjects- the objects need to replace
-
consoleInput
public void consoleInput(String message)
Log a message inputted by console with DEBUG level- Parameters:
message- the message need to reshow
-
thr
public void thr(String message, Throwable e)
Log a message and a throwable (or exception) with ERROR level- Parameters:
message- the message need to errore- a throwable (or exception) with this message
-
thrLang
public void thrLang(String key, Throwable e, Object... objects)
Log a message and a throwable (or exception) with ERROR level- Parameters:
key- the language keye- a throwable (or exception) with this messageobjects- the objects need to replace
-
fatal
public void fatal(String message)
Log a message with ERROR level- Parameters:
message- the message need to fatal
-
fatalLang
public void fatalLang(String key, Object... objects)
Log a message with ERROR level- Parameters:
key- the language keyobjects- the objects need to replace
-
debug
public void debug(String message)
Log a message with DEBUG level- Parameters:
message- the message need to debug
-
debugLang
public void debugLang(String key, Object... objects)
Log a message with DEBUG level- Parameters:
key- the language keyobjects- the objects need to replace
-
trace
public void trace(String message, Throwable e)
Log a message and a throwable (or exception) with TRACE level- Parameters:
message- the message need to tracee- a throwable (or exception) with this message
-
toggleDebugOutput
public void toggleDebugOutput()
Toggle debug output Note: if debug output is true, the debug message will be outputted as INFO level and DEBUG level, otherwise, it will be outputted as DEBUG level
-
isDebugOutput
public boolean isDebugOutput()
Get debug output status- Returns:
- true if debug output as INFO level and DEBUG level, false otherwise
-
-