Interface Logger
-
- All Known Implementing Classes:
VoidLogger
@Deprecated public interface Logger
Deprecated.starting with 3.1M2 use SLF4J insteadLogger component, used for logging messages. Classes that want to log should not declare a dependency on this component, but implement theLogEnabled
interface. A quick way to enable logging is to extendAbstractLogEnabled
.- Version:
- $Id: 85d5e9db1afdf8ec7c1d5550d37f04cbb6a903ab $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
debug(String message)
Deprecated.Log a message with thedebug
priority.void
debug(String message, Object... objects)
Deprecated.Logs themessage
to the logger withdebug
priority while expanding the message with the objects passed.void
debug(String message, Throwable throwable)
Deprecated.Log a message with thedebug
priority, also printing the exception that caused this message, along with its stack trace.void
debug(String message, Throwable throwable, Object... objects)
Deprecated.Logs themessage
to the logger withdebug
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace.void
error(String message)
Deprecated.Log a message with theerror
priority.void
error(String message, Object... objects)
Deprecated.Logs themessage
to the logger witherror
priority while expanding the message with the objects passed.void
error(String message, Throwable throwable)
Deprecated.Log a message with theerror
priority, also printing the exception that caused this message, along with its stack trace.void
error(String message, Throwable throwable, Object... objects)
Deprecated.Logs themessage
to the logger witherror
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace.void
info(String message)
Deprecated.Log a message with theinfo
priority.void
info(String message, Object... objects)
Deprecated.Logs themessage
to the logger withinfo
priority while expanding the message with the objects passed.void
info(String message, Throwable throwable)
Deprecated.Log a message with theinfo
priority, also printing the exception that caused this message, along with its stack trace.void
info(String message, Throwable throwable, Object... objects)
Deprecated.Logs themessage
to the logger withinfo
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace.boolean
isDebugEnabled()
Deprecated.Check if thedebug
priority is enabled.boolean
isErrorEnabled()
Deprecated.Check if theerror
priority is enabled.boolean
isInfoEnabled()
Deprecated.Check if theinfo
priority is enabled.boolean
isWarnEnabled()
Deprecated.Check if thewarn
priority is enabled.void
warn(String message)
Deprecated.Log a message with thewarn
priority.void
warn(String message, Object... objects)
Deprecated.Logs themessage
to the logger withwarn
priority while expanding the message with the objects passed.void
warn(String message, Throwable throwable)
Deprecated.Log a message with thewarn
priority, also printing the exception that caused this message, along with its stack trace.void
warn(String message, Throwable throwable, Object... objects)
Deprecated.Logs themessage
to the logger withwarn
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace.
-
-
-
Method Detail
-
debug
void debug(String message)
Deprecated.Log a message with thedebug
priority.- Parameters:
message
- The message to be logged. No further processing of the message is performed.
-
debug
void debug(String message, Throwable throwable)
Deprecated.Log a message with thedebug
priority, also printing the exception that caused this message, along with its stack trace.- Parameters:
message
- The message to be logged. No further processing of the message is performed.throwable
- The exception associated with the message, for stack trace output.
-
debug
void debug(String message, Object... objects)
Deprecated.Logs the
message
to the logger withdebug
priority while expanding the message with the objects passed. The message uses theMessageFormat
syntax.Example:
log.debug("Doc was created on {0} and was changed {1} times", date, 5); log.debug("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be formatted if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
objects
- The objects to be filled into the message- See Also:
MessageFormat
-
debug
void debug(String message, Throwable throwable, Object... objects)
Deprecated.Logs the
message
to the logger withdebug
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace. The message uses theMessageFormat
syntax.Example:
log.debug("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
throwable
- The exception associated with the message, for stack trace output.objects
- The objects to be filled into the message- See Also:
MessageFormat
-
isDebugEnabled
boolean isDebugEnabled()
Deprecated.Check if thedebug
priority is enabled.- Returns:
true
if messages withdebug
priority will be logged,false
otherwise
-
info
void info(String message)
Deprecated.Log a message with theinfo
priority.- Parameters:
message
- The message to be logged. No further processing of the message is performed.
-
info
void info(String message, Throwable throwable)
Deprecated.Log a message with theinfo
priority, also printing the exception that caused this message, along with its stack trace.- Parameters:
message
- The message to be logged. No further processing of the message is performed.throwable
- The exception associated with the message, for stack trace output.
-
info
void info(String message, Object... objects)
Deprecated.Logs the
message
to the logger withinfo
priority while expanding the message with the objects passed. The message uses theMessageFormat
syntax.
Example:
log.info("Doc was created on {0} and was changed {1} times", date, 5); log.info("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
objects
- The objects to be filled into the message- See Also:
MessageFormat
-
info
void info(String message, Throwable throwable, Object... objects)
Deprecated.Logs the
message
to the logger withinfo
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace. The message uses theMessageFormat
syntax.Example:
log.info("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
throwable
- The exception associated with the message, for stack trace output.objects
- The objects to be filled into the message- See Also:
MessageFormat
-
isInfoEnabled
boolean isInfoEnabled()
Deprecated.Check if theinfo
priority is enabled.- Returns:
true
if messages withinfo
priority will be logged,false
otherwise
-
warn
void warn(String message)
Deprecated.Log a message with thewarn
priority.- Parameters:
message
- The message to be logged. No further processing of the message is performed.
-
warn
void warn(String message, Throwable throwable)
Deprecated.Log a message with thewarn
priority, also printing the exception that caused this message, along with its stack trace.- Parameters:
message
- The message to be logged. No further processing of the message is performed.throwable
- The exception associated with the message, for stack trace output.
-
warn
void warn(String message, Object... objects)
Deprecated.Logs the
message
to the logger withwarn
priority while expanding the message with the objects passed. The message uses theMessageFormat
syntax.Example:
log.warn("Doc was created on {0} and was changed {1} times", date, 5); log.warn("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
objects
- The objects to be filled into the message- See Also:
MessageFormat
-
warn
void warn(String message, Throwable throwable, Object... objects)
Deprecated.Logs the
message
to the logger withwarn
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace. The message uses theMessageFormat
syntax.Example:
log.warn("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
throwable
- The exception associated with the message, for stack trace output.objects
- The objects to be filled into the message- See Also:
MessageFormat
-
isWarnEnabled
boolean isWarnEnabled()
Deprecated.Check if thewarn
priority is enabled.- Returns:
true
if messages withwarn
priority will be logged,false
otherwise
-
error
void error(String message)
Deprecated.Log a message with theerror
priority.- Parameters:
message
- The message to be logged. No further processing of the message is performed.
-
error
void error(String message, Throwable throwable)
Deprecated.Log a message with theerror
priority, also printing the exception that caused this message, along with its stack trace.- Parameters:
message
- The message to be logged. No further processing of the message is performed.throwable
- The exception associated with the message, for stack trace output.
-
error
void error(String message, Object... objects)
Deprecated.Logs the
message
to the logger witherror
priority while expanding the message with the objects passed. The message uses theMessageFormat
syntax.Example:
log.error("Doc was created on {0} and was changed {1} times", date, 5); log.error("There {0,choice,0#are|1#is|1<are} {0,choice,0#no|1#one|1<{0}} file{0,choice,0#s|1#|1<s}", nrFiles);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
objects
- The objects to be filled into the message- See Also:
MessageFormat
-
error
void error(String message, Throwable throwable, Object... objects)
Deprecated.Logs the
message
to the logger witherror
priority while expanding the message with the objects passed, also printing the exception that caused this message, along with its stack trace. The message uses theMessageFormat
syntax.Example:
log.error("Unhandled exception while executing the query [{0}]", exception, query);
The logged message will only be assembled if the message is actually logged.
- Parameters:
message
- The message to be formatted viaMessageFormat
throwable
- The exception associated with the message, for stack trace output.objects
- The objects to be filled into the message- See Also:
MessageFormat
-
isErrorEnabled
boolean isErrorEnabled()
Deprecated.Check if theerror
priority is enabled.- Returns:
true
if messages witherror
priority will be logged,false
otherwise
-
-