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
Modifier and TypeFieldDescriptionstatic final int
A general debugging event.static final int
An error in the application, possibly recoverable.static final int
A fatal event that will prevent the application from continuing.static final int
An event for informational purposes.static final int
A fine-grained debug message, typically capturing the flow through the application.static final int
An event that might possible lead to an error. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
Logs a message object with theDEBUG
level.static void
Logs a message object with theDEBUG
level.static void
static void
Logs a message object with theERROR
level.static void
Logs a message object with theERROR
level.static void
static void
Logs a message object with theFATAL
level.static void
Logs a message object with theFATAL
level.static void
static void
Logs a message object with theINFO
level.static void
Logs a message object with theINFO
level.static void
static void
Logs a formatted message using the specified format string and arguments.static <T extends Throwable>
Tthrowing
(T throwable) static void
Logs a message object with theTRACE
level.static void
Logs a message object with theTRACE
level.static void
static void
Logs a message object with theWARN
level.static void
Logs a message object with theWARN
level.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 theTRACE
level.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.
-
trace
Logs a message object with theTRACE
level.- 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 theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message object with theDEBUG
level.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.
-
debug
Logs a message object with theDEBUG
level.- 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 theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message object with theINFO
level.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.
-
info
Logs a message object with theINFO
level.- 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 theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message object with theWARN
level.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.
-
warn
Logs a message object with theWARN
level.- 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 theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message object with theERROR
level.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.
-
error
Logs a message object with theERROR
level.- 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 theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message object with theFATAL
level.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.
-
fatal
Logs a message object with theFATAL
level.- 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 theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
tag
- used to identify the source of a log message.msg
- the message string to log.throwable
- theThrowable
to 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.
-