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 voidLogs aDEBUGmessage.static voidLogs aDEBUGmessage with the given arguments.static voidLogs aDEBUGmessage with the given exception.static voidLogs anERRORmessage with a given lazy calculated parameter.static voidLogs a lazily constructedDEBUGmessage.static voidLogs anERRORmessage.static voidLogs anERRORmessage with the given arguments.static voidLogs anERRORmessage with the given exception.static voidLogs anERRORmessage with the given exception and arguments.static voidLogs anERRORmessage with the given exception and a lazy calculated parameter.static voidLogs anINFOmessage.static voidLogs anINFOmessage with the given arguments.static booleanChecks whether log entries atDEBUGlevel will be output.static booleanChecks whether log entries atERRORlevel will be output.static booleanChecks whether log entries atINFOlevel will be output.static booleanChecks whether log entries atTRACElevel will be output.static booleanChecks whether log entries atWARNINGlevel will be output.static Levellevel()Returns the current log level specifying which message levels will be logged.static voidSets the log level specifying which message levels will be logged.static voidoff()Disables logging by setting the log level toLevel.OFF.static voidLogs aTRACEmessage with the given arguments.static voidLogs a lazily constructedTRACEmessage.static voidLogs aWARNINGmessage.static voidLogs aWARNINGmessage with the given arguments.static voidLogs aWARNINGmessage with the given exception.static voidLogs a lazily constructedWARNINGmessage 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.OFFvalue 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 anERRORmessage.- Parameters:
message- the message to log
-
error
Logs anERRORmessage with the given arguments.- Parameters:
message- the message to logarguments- the array of arguments to the message
-
error
Logs anERRORmessage with the given exception.- Parameters:
message- the message to logexception- theThrowableassociated with the log message
-
error
Logs anERRORmessage with the given exception and a lazy calculated parameter.- Parameters:
message- the message to logexception- theThrowableassociated with the log messageparameterSupplier- a function, which when called, produces the desired log message parameter
-
error
Logs anERRORmessage with the given exception and arguments.- Parameters:
message- the message to logexception- theThrowableassociated with the log messagearguments- the array of arguments to the message
-
info
Logs anINFOmessage.- Parameters:
message- the message to log
-
info
Logs anINFOmessage with the given arguments.- Parameters:
message- the message to logarguments- the array of arguments to the message
-
warn
Logs aWARNINGmessage.- Parameters:
message- the message to log
-
warn
Logs aWARNINGmessage with the given arguments.- Parameters:
message- the message to logarguments- the array of arguments to the message
-
warn
Logs aWARNINGmessage with the given exception.- Parameters:
message- the message to logexception- theThrowableassociated with the log message
-
warn
Logs a lazily constructedWARNINGmessage with the given exception.- Parameters:
exception- theThrowableassociated with the log messagemsgSupplier- a function, which when called, produces the desired log message
-
debug
Logs aDEBUGmessage.- Parameters:
message- the message to log
-
debug
Logs aDEBUGmessage with the given exception.- Parameters:
message- the message to logexception- theThrowableassociated with the log message
-
debug
Logs a lazily constructedDEBUGmessage.- Parameters:
msgSupplier- a function, which when called, produces the desired log message
-
debug
Logs aDEBUGmessage with the given arguments.- Parameters:
message- the message to logarguments- the array of arguments to the message
-
debug
Logs anERRORmessage 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 aTRACEmessage with the given arguments.- Parameters:
message- the message to logarguments- the array of arguments to the message
-
trace
Logs a lazily constructedTRACEmessage.- Parameters:
msgSupplier- a function, which when called, produces the desired log message
-
isErrorEnabled
public static boolean isErrorEnabled()Checks whether log entries atERRORlevel will be output. -
isWarnEnabled
public static boolean isWarnEnabled()Checks whether log entries atWARNINGlevel will be output. -
isInfoEnabled
public static boolean isInfoEnabled()Checks whether log entries atINFOlevel will be output. -
isDebugEnabled
public static boolean isDebugEnabled()Checks whether log entries atDEBUGlevel will be output. -
isTraceEnabled
public static boolean isTraceEnabled()Checks whether log entries atTRACElevel will be output.
-