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()Initialize a logger for this framework.
-
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 levelvoidthr(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 levelvoidtrace(String message, Throwable e)Log a message and a throwable (or exception) with TRACE level
-
-
-
Constructor Detail
-
FocessLogger
public FocessLogger()
Initialize a logger for this framework. Never instance it! It will be instanced when bot bootstraps automatically.- See Also:
Main.getLogger()
-
-
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
-
-