Package icyllis.modernui.util
Class Log
java.lang.Object
icyllis.modernui.util.Log
Framework wrapper over Log4j API for sending log output.
- Since:
- 3.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA general debugging event.static final intAn error in the application, possibly recoverable.static final intA fatal event that will prevent the application from continuing.static final intAn event for informational purposes.static final intA fine-grained debug message, typically capturing the flow through the application.static final intAn event that might possible lead to an error. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidLogs a message object with theDEBUGlevel.static voidLogs a message object with theDEBUGlevel.static voidstatic voidLogs a message object with theERRORlevel.static voidLogs a message object with theERRORlevel.static voidstatic voidLogs a message object with theFATALlevel.static voidLogs a message object with theFATALlevel.static voidstatic voidLogs a message object with theINFOlevel.static voidLogs a message object with theINFOlevel.static voidstatic voidLogs a formatted message using the specified format string and arguments.static <T extends Throwable>
Tthrowing(T throwable) static voidLogs a message object with theTRACElevel.static voidLogs a message object with theTRACElevel.static voidstatic voidLogs a message object with theWARNlevel.static voidLogs a message object with theWARNlevel.static void
-
Field Details
-
TRACE
public static final int TRACEA fine-grained debug message, typically capturing the flow through the application.- See Also:
-
DEBUG
public static final int DEBUGA general debugging event.- See Also:
-
INFO
public static final int INFOAn event for informational purposes.- See Also:
-
WARN
public static final int WARNAn event that might possible lead to an error.- See Also:
-
ERROR
public static final int ERRORAn error in the application, possibly recoverable.- See Also:
-
FATAL
public static final int FATALA fatal event that will prevent the application from continuing.- See Also:
-
-
Method Details
-
trace
Logs a message object with theTRACElevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.
-
trace
Logs a message object with theTRACElevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.params- parameters to the message.
-
trace
Logs a message at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.throwable- theThrowableto log, including its stack trace.
-
debug
Logs a message object with theDEBUGlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.
-
debug
Logs a message object with theDEBUGlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.params- parameters to the message.
-
debug
Logs a message at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.throwable- theThrowableto log, including its stack trace.
-
info
Logs a message object with theINFOlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.
-
info
Logs a message object with theINFOlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.params- parameters to the message.
-
info
Logs a message at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.throwable- theThrowableto log, including its stack trace.
-
warn
Logs a message object with theWARNlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.
-
warn
Logs a message object with theWARNlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.params- parameters to the message.
-
warn
Logs a message at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.throwable- theThrowableto log, including its stack trace.
-
error
Logs a message object with theERRORlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.
-
error
Logs a message object with theERRORlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.params- parameters to the message.
-
error
Logs a message at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.throwable- theThrowableto log, including its stack trace.
-
fatal
Logs a message object with theFATALlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.
-
fatal
Logs a message object with theFATALlevel.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.params- parameters to the message.
-
fatal
Logs a message at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
tag- used to identify the source of a log message.msg- the message string to log.throwable- theThrowableto log, including its stack trace.
-
catching
- Parameters:
throwable- the Throwable.
-
throwing
- Type Parameters:
T- the Throwable type.- Parameters:
throwable- The Throwable.- Returns:
- the Throwable.
-
printf
Logs a formatted message using the specified format string and arguments.- Parameters:
level- The logging level.tag- Used to identify the source of a log message.format- The format String.params- Arguments specified by the format.
-