public interface XdevLogger
XdevLogger
is a thin wrapper around the java.util.logging
package. It provides many shortcuts for everyday logging situations.
For information regarding logger configuration take a look at LoggingConfiguration
.Modifier and Type | Method and Description |
---|---|
void |
debug(String msg)
Log a message at the FINE level.
|
void |
debug(String msg,
Object... args)
Log a message at the FINE level according to the specified message and
arguments.
|
void |
debug(Throwable thrown)
Log an exception (throwable) at the FINE level.
|
void |
debug(Throwable thrown,
String msg)
Log an exception (throwable) at the FINE level with an accompanying
message.
|
void |
error(String msg)
Log a message at the ERROR (SEVERE) level.
|
void |
error(String msg,
Object... args)
Log a message at the ERROR (SEVERE) level according to the specified message and
arguments.
|
void |
error(Throwable thrown)
Log an exception (throwable) at the ERROR (SEVERE) level.
|
void |
error(Throwable thrown,
String msg)
Log an exception (throwable) at the ERROR (SEVERE) level with an accompanying
message.
|
Logger |
getLogger()
Returns
Logger instance that backs this XdevLoggerImpl . |
void |
info(String msg)
Log a message at the INFO level.
|
void |
info(String msg,
Object... args)
Log a message at the INFO level according to the specified message and
arguments.
|
void |
info(Throwable thrown)
Log an exception (throwable) at the INFO level.
|
void |
info(Throwable thrown,
String msg)
Log an exception (throwable) at the WARNING level with an accompanying
message.
|
boolean |
isDebugEnabled()
Is the logger instance enabled for the FINE level?
|
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level?
|
boolean |
isInfoEnabled()
Is the logger instance enabled for the INFO level?
|
boolean |
isWarningEnabled()
Is the logger instance enabled for the WARNING level?
|
void |
warning(String msg)
Log a message at the WARNING level.
|
void |
warning(String msg,
Object... args)
Log a message at the WARNING level according to the specified message and
arguments.
|
void |
warning(Throwable thrown)
Log an exception (throwable) at the WARNING level.
|
void |
warning(Throwable thrown,
String msg)
Log an exception (throwable) at the WARNING level with an accompanying
message.
|
void error(Throwable thrown)
thrown
- the exception (throwable) to logvoid error(Throwable thrown, String msg)
msg
- the message accompanying the exceptionthrown
- the exception (throwable) to logvoid error(String msg, Object... args)
The arguments will be integrated using the MessageFormat
syntax.
msg
- the format stringargs
- an array of argumentsMessageFormat
void warning(Throwable thrown)
thrown
- the exception (throwable) to logvoid warning(Throwable thrown, String msg)
msg
- the message accompanying the exceptionthrown
- the exception (throwable) to logvoid warning(String msg, Object... args)
The arguments will be integrated using the MessageFormat
syntax.
msg
- the format stringargs
- an array of argumentsMessageFormat
void info(Throwable thrown)
thrown
- the exception (throwable) to logvoid info(Throwable thrown, String msg)
msg
- the message accompanying the exceptionthrown
- the exception (throwable) to logvoid info(String msg, Object... args)
The arguments will be integrated using the MessageFormat
syntax.
msg
- the format stringargs
- an array of argumentsMessageFormat
void info(String msg)
msg
- the message to logboolean isDebugEnabled()
true
if this Logger is enabled for the FINE level,
false
otherwise.boolean isErrorEnabled()
true
if this Logger is enabled for the ERROR level,
false
otherwise.boolean isWarningEnabled()
true
if this Logger is enabled for the WARNING
level, false
otherwise.boolean isInfoEnabled()
true
if this Logger is enabled for the INFO level,
false
otherwise.void debug(Throwable thrown)
thrown
- the exception (throwable) to logvoid debug(Throwable thrown, String msg)
msg
- the message accompanying the exceptionthrown
- the exception (throwable) to logvoid debug(String msg, Object... args)
The arguments will be integrated using the MessageFormat
syntax.
msg
- the format stringargs
- an array of argumentsMessageFormat
void debug(String msg)
msg
- the message to logvoid warning(String msg)
msg
- the message to logvoid error(String msg)
msg
- the message to logLogger getLogger()
Logger
instance that backs this XdevLoggerImpl
.Logger
instance that backs this XdevLoggerImpl
.Copyright © 2003–2021 XDEV Software. All rights reserved.