Class Logger

  • All Implemented Interfaces:
    ILogger, org.apache.log4j.spi.AppenderAttachable

    public class Logger
    extends org.apache.log4j.Logger
    implements ILogger
    Extends the log4j Logger to expand the Logger's interface. The main extension is made up by the method log, witch is able to handle a formated Message(java.text.MessageFormat) and a variable number of parameters.
    Since:
    09.02.2006
    API:
    This is a public API.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(String formatedMessage, Object... args)
      Formats and logs a message with level DEBUG.
      void debug​(String formatedMessage, Throwable throwable, Object... args)
      Formats and logs a message with level DEBUG.
      void error​(Object message)
      Logs a message with level ERROR.
      void error​(String formatedMessage, Object... args)
      Formats and logs a message with level ERROR.
      void error​(String formatedMessage, Throwable throwable, Object... args)
      Formats and logs a message with level ERROR.
      void fatal​(String formatedMessage, Object... args)
      Formats and logs a message with level FATAL.
      void fatal​(String formatedMessage, Throwable throwable, Object... args)
      Formats and logs a message with level FATAL.
      void info​(Object message)
      Logs a message with level INFO.
      void info​(String formatedMessage, Object... args)
      Formats(java.text.MessageFormat) and logs a message with level INFO.
      void info​(String formatedMessage, Throwable throwable, Object... args)
      Formats(java.text.MessageFormat) and logs a message with level INFO including a throwable.
      void log​(org.apache.log4j.Priority _level, String formatedMessage, Object... args)
      Formats(java.text.MessageFormat) and logs a message.
      void log​(org.apache.log4j.Priority _level, String formatedMessage, Throwable throwable, Object... args)
      Formats(java.text.MessageFormat) and logs a message.
      void warn​(Object message)
      Logs a message with level WARN.
      void warn​(String formatedMessage, Object... args)
      Formats and logs a message with level WARNING.
      void warn​(String formatedMessage, Throwable throwable, Object... args)
      Formats and logs a message with level WARNING.
    • Method Detail

      • log

        public void log​(org.apache.log4j.Priority _level,
                        String formatedMessage,
                        Object... args)
        Description copied from interface: ILogger
        Formats(java.text.MessageFormat) and logs a message. Example: log("My {0} Message with {1} tokens.", "first", 2); --> log result: "My first Message with 2 tokens." After formating it calls the log method of org.apache.log4j.Logger
        Specified by:
        log in interface ILogger
        Parameters:
        _level - logging level see Priority
        formatedMessage - message including format tokens '{}'
        args - token content
        See Also:
        ILogger.log(org.apache.log4j.Priority, String, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • log

        public void log​(org.apache.log4j.Priority _level,
                        String formatedMessage,
                        Throwable throwable,
                        Object... args)
        Description copied from interface: ILogger
        Formats(java.text.MessageFormat) and logs a message. Including a Throwable Object.
        Specified by:
        log in interface ILogger
        Parameters:
        _level - logging level see Priority
        formatedMessage - message including format tokens '{}'
        throwable - e.g. includes the exception
        args - token content
        See Also:
        ILogger.log(org.apache.log4j.Priority, String, Throwable, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • info

        public void info​(String formatedMessage,
                         Object... args)
        Description copied from interface: ILogger
        Formats(java.text.MessageFormat) and logs a message with level INFO.
        Specified by:
        info in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        args - token content
        See Also:
        ILogger.info(String, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • info

        public void info​(String formatedMessage,
                         Throwable throwable,
                         Object... args)
        Description copied from interface: ILogger
        Formats(java.text.MessageFormat) and logs a message with level INFO including a throwable.
        Specified by:
        info in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        throwable - e.g. includes the exception
        args - token content
        See Also:
        ILogger.info(String, Throwable, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • warn

        public void warn​(String formatedMessage,
                         Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level WARNING.
        Specified by:
        warn in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        args - token content
        See Also:
        ILogger.warn(String, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • warn

        public void warn​(String formatedMessage,
                         Throwable throwable,
                         Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level WARNING.
        Specified by:
        warn in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        throwable - e.g. includes the exception
        args - token content
        See Also:
        ILogger.warn(String, Throwable, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • error

        public void error​(String formatedMessage,
                          Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level ERROR.
        Specified by:
        error in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        args - token content
        See Also:
        ILogger.error(String, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • error

        public void error​(String formatedMessage,
                          Throwable throwable,
                          Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level ERROR.
        Specified by:
        error in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        throwable - e.g. includes the exception
        args - token content
        See Also:
        ILogger.error(String, Throwable, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • fatal

        public void fatal​(String formatedMessage,
                          Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level FATAL.
        Specified by:
        fatal in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        args - token content
        See Also:
        ILogger.fatal(String, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • fatal

        public void fatal​(String formatedMessage,
                          Throwable throwable,
                          Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level FATAL.
        Specified by:
        fatal in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        throwable - e.g. includes the exception
        args - token content
        See Also:
        ILogger.fatal(String, Throwable, Object...)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • debug

        public void debug​(String formatedMessage,
                          Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level DEBUG.
        Specified by:
        debug in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        args - token content
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • debug

        public void debug​(String formatedMessage,
                          Throwable throwable,
                          Object... args)
        Description copied from interface: ILogger
        Formats and logs a message with level DEBUG.
        Specified by:
        debug in interface ILogger
        Parameters:
        formatedMessage - message including format tokens '{}'
        throwable - e.g. includes the exception
        args - token content
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • error

        public void error​(Object message)
        Description copied from interface: ILogger
        Logs a message with level ERROR.
        Specified by:
        error in interface ILogger
        Parameters:
        message - if the message is an Throwable the stack trace is also logged
        See Also:
        ILogger.error(Object)
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • warn

        public void warn​(Object message)
        Description copied from interface: ILogger
        Logs a message with level WARN.
        Specified by:
        warn in interface ILogger
        Parameters:
        message - if the message is an Throwable the stack trace is also logged.
        See Also:
        ILogger.warn(Object)
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.
      • info

        public void info​(Object message)
        Description copied from interface: ILogger
        Logs a message with level INFO.
        Specified by:
        info in interface ILogger
        Parameters:
        message - if the message is an Throwable the stack trace is also logged.
        See Also:
        ILogger.info(Object)
        API:
        This public API is available in IvyScript and Java. It has the visibility NOVICE.