Package com.teamdev.jxbrowser.logging
Class Logger
java.lang.Object
com.teamdev.jxbrowser.logging.Logger
Static class to configure log and create log entries.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Logs aDEBUG
message.static void
Logs aDEBUG
message with the given arguments.static void
Logs aDEBUG
message with the given exception.static void
Logs anERROR
message with a given lazy calculated parameter.static void
Logs a lazily constructedDEBUG
message.static void
Logs anERROR
message.static void
Logs anERROR
message with the given arguments.static void
Logs anERROR
message with the given exception.static void
Logs anERROR
message with the given exception and arguments.static void
Logs anERROR
message with the given exception and a lazy calculated parameter.static void
Logs anINFO
message.static void
Logs anINFO
message with the given arguments.static boolean
Checks whether log entries atDEBUG
level will be output.static boolean
Checks whether log entries atERROR
level will be output.static boolean
Checks whether log entries atINFO
level will be output.static boolean
Checks whether log entries atTRACE
level will be output.static boolean
Checks whether log entries atWARNING
level will be output.static Level
level()
Returns the current log level specifying which message levels will be logged.static void
Sets the log level specifying which message levels will be logged.static void
off()
Disables logging by setting the log level toLevel.OFF
.static void
Logs aTRACE
message with the given arguments.static void
Logs a lazily constructedTRACE
message.static void
Logs aWARNING
message.static void
Logs aWARNING
message with the given arguments.static void
Logs aWARNING
message with the given exception.static void
Logs a lazily constructedWARNING
message with the given exception.
-
Method Details
-
level
Returns the current log level specifying which message levels will be logged. -
level
Sets the log level specifying which message levels will be logged. Message levels lower than this value will be discarded. TheLevel.OFF
value can be used to turn off logging.- Parameters:
level
- the new value for the log level
-
off
public static void off()Disables logging by setting the log level toLevel.OFF
. -
error
Logs anERROR
message.- Parameters:
message
- the message to log
-
error
Logs anERROR
message with the given arguments.- Parameters:
message
- the message to logarguments
- the array of arguments to the message
-
error
Logs anERROR
message with the given exception.- Parameters:
message
- the message to logexception
- theThrowable
associated with the log message
-
error
Logs anERROR
message with the given exception and a lazy calculated parameter.- Parameters:
message
- the message to logexception
- theThrowable
associated with the log messageparameterSupplier
- a function, which when called, produces the desired log message parameter
-
error
Logs anERROR
message with the given exception and arguments.- Parameters:
message
- the message to logexception
- theThrowable
associated with the log messagearguments
- the array of arguments to the message
-
info
Logs anINFO
message.- Parameters:
message
- the message to log
-
info
Logs anINFO
message with the given arguments.- Parameters:
message
- the message to logarguments
- the array of arguments to the message
-
warn
Logs aWARNING
message.- Parameters:
message
- the message to log
-
warn
Logs aWARNING
message with the given arguments.- Parameters:
message
- the message to logarguments
- the array of arguments to the message
-
warn
Logs aWARNING
message with the given exception.- Parameters:
message
- the message to logexception
- theThrowable
associated with the log message
-
warn
Logs a lazily constructedWARNING
message with the given exception.- Parameters:
exception
- theThrowable
associated with the log messagemsgSupplier
- a function, which when called, produces the desired log message
-
debug
Logs aDEBUG
message.- Parameters:
message
- the message to log
-
debug
Logs aDEBUG
message with the given exception.- Parameters:
message
- the message to logexception
- theThrowable
associated with the log message
-
debug
Logs a lazily constructedDEBUG
message.- Parameters:
msgSupplier
- a function, which when called, produces the desired log message
-
debug
Logs aDEBUG
message with the given arguments.- Parameters:
message
- the message to logarguments
- the array of arguments to the message
-
debug
Logs anERROR
message with a given lazy calculated parameter.- Parameters:
message
- the message to logparameterSupplier
- a function, which when called, produces the desired log message parameter
-
trace
Logs aTRACE
message with the given arguments.- Parameters:
message
- the message to logarguments
- the array of arguments to the message
-
trace
Logs a lazily constructedTRACE
message.- Parameters:
msgSupplier
- a function, which when called, produces the desired log message
-
isErrorEnabled
public static boolean isErrorEnabled()Checks whether log entries atERROR
level will be output. -
isWarnEnabled
public static boolean isWarnEnabled()Checks whether log entries atWARNING
level will be output. -
isInfoEnabled
public static boolean isInfoEnabled()Checks whether log entries atINFO
level will be output. -
isDebugEnabled
public static boolean isDebugEnabled()Checks whether log entries atDEBUG
level will be output. -
isTraceEnabled
public static boolean isTraceEnabled()Checks whether log entries atTRACE
level will be output.
-