Class 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 instead
    Helper methods to help in implementation of Loggers.
    Since:
    2.0M1
    Version:
    $Id: f187fb995cd870079da4eb8384653468f495b7f2 $
    • Constructor Detail

      • AbstractLogger

        public AbstractLogger()
        Deprecated.
    • Method Detail

      • formatMessage

        protected String formatMessage​(String message,
                                       Object... objects)
        Deprecated.
        Formats the message like MessageFormat.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 syntax
        objects - Objects to fill in
        Returns:
        the formatted String if possible, else the message and all objects concatenated.
        See Also:
        MessageFormat