Package org.xwiki.component.logging
Class AbstractLogger
- java.lang.Object
-
- org.xwiki.component.logging.AbstractLogger
-
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
DefaultLogger
@Deprecated public abstract class AbstractLogger extends Object implements Logger
Deprecated.starting with 3.1M2 use SLF4J insteadHelper methods to help in implementation of Loggers.- Since:
- 2.0M1
- Version:
- $Id: f187fb995cd870079da4eb8384653468f495b7f2 $
-
-
Constructor Summary
Constructors Constructor Description AbstractLogger()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
formatMessage(String message, Object... objects)
Deprecated.Formats the message likeMessageFormat.format(String, Object...)
but also checks for Exceptions and catches them as logging should be robust and not interfere with normal program flow.
-
-
-
Method Detail
-
formatMessage
protected String formatMessage(String message, Object... objects)
Deprecated.Formats the message likeMessageFormat.format(String, Object...)
but also checks for Exceptions and catches them as logging should be robust and not interfere with normal program flow. The Exception caught will be passed to the loggers debug output.- Parameters:
message
- message in Formatter format syntaxobjects
- Objects to fill in- Returns:
- the formatted String if possible, else the message and all objects concatenated.
- See Also:
MessageFormat
-
-