Class SimpleExoLog

  • All Implemented Interfaces:
    Log

    public class SimpleExoLog
    extends Object
    implements Log
    Based on apache commons logging SimpleLog class. It could be implemented later to use the system output directly in the future if the dependency over commons logging is removed.
    Version:
    $Id: SimpleExoLog.java 34394 2009-07-23 09:23:31Z dkatayev $
    Author:
    Julien Viet
    • Constructor Detail

      • SimpleExoLog

        public SimpleExoLog​(String name)
    • Method Detail

      • setLevel

        public void setLevel​(int i)
      • getLevel

        public int getLevel()
      • debug

        public void debug​(Object o)
        Description copied from interface: Log

        Log a message with debug log level.

        Specified by:
        debug in interface Log
        Parameters:
        o - log this message
      • debug

        public void debug​(Object o,
                          Throwable throwable)
        Description copied from interface: Log

        Log an error with debug log level.

        Specified by:
        debug in interface Log
        Parameters:
        o - log this message
        throwable - log this cause
      • trace

        public void trace​(Object o)
        Description copied from interface: Log

        Log a message with trace log level.

        Specified by:
        trace in interface Log
        Parameters:
        o - log this message
      • trace

        public void trace​(Object o,
                          Throwable throwable)
        Description copied from interface: Log

        Log an error with trace log level.

        Specified by:
        trace in interface Log
        Parameters:
        o - log this message
        throwable - log this cause
      • info

        public void info​(Object o)
        Description copied from interface: Log

        Log a message with info log level.

        Specified by:
        info in interface Log
        Parameters:
        o - log this message
      • info

        public void info​(Object o,
                         Throwable throwable)
        Description copied from interface: Log

        Log an error with info log level.

        Specified by:
        info in interface Log
        Parameters:
        o - log this message
        throwable - log this cause
      • warn

        public void warn​(Object o)
        Description copied from interface: Log

        Log a message with warn log level.

        Specified by:
        warn in interface Log
        Parameters:
        o - log this message
      • warn

        public void warn​(Object o,
                         Throwable throwable)
        Description copied from interface: Log

        Log an error with warn log level.

        Specified by:
        warn in interface Log
        Parameters:
        o - log this message
        throwable - log this cause
      • error

        public void error​(Object o)
        Description copied from interface: Log

        Log a message with error log level.

        Specified by:
        error in interface Log
        Parameters:
        o - log this message
      • error

        public void error​(Object o,
                          Throwable throwable)
        Description copied from interface: Log

        Log an error with error log level.

        Specified by:
        error in interface Log
        Parameters:
        o - log this message
        throwable - log this cause
      • fatal

        public void fatal​(Object o)
        Description copied from interface: Log

        Log a message with fatal log level.

        Specified by:
        fatal in interface Log
        Parameters:
        o - log this message
      • fatal

        public void fatal​(Object o,
                          Throwable throwable)
        Description copied from interface: Log

        Log an error with fatal log level.

        Specified by:
        fatal in interface Log
        Parameters:
        o - log this message
        throwable - log this cause
      • isDebugEnabled

        public boolean isDebugEnabled()
        Description copied from interface: Log

        Is debug logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than debug.

        Specified by:
        isDebugEnabled in interface Log
        Returns:
        true if debug is enabled in the underlying logger.
      • isErrorEnabled

        public boolean isErrorEnabled()
        Description copied from interface: Log

        Is error logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than error.

        Specified by:
        isErrorEnabled in interface Log
        Returns:
        true if error is enabled in the underlying logger.
      • isFatalEnabled

        public boolean isFatalEnabled()
        Description copied from interface: Log

        Is fatal logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than fatal.

        Specified by:
        isFatalEnabled in interface Log
        Returns:
        true if fatal is enabled in the underlying logger.
      • isInfoEnabled

        public boolean isInfoEnabled()
        Description copied from interface: Log

        Is info logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than info.

        Specified by:
        isInfoEnabled in interface Log
        Returns:
        true if info is enabled in the underlying logger.
      • isTraceEnabled

        public boolean isTraceEnabled()
        Description copied from interface: Log

        Is trace logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than trace.

        Specified by:
        isTraceEnabled in interface Log
        Returns:
        true if trace is enabled in the underlying logger.
      • isWarnEnabled

        public boolean isWarnEnabled()
        Description copied from interface: Log

        Is warn logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than warn.

        Specified by:
        isWarnEnabled in interface Log
        Returns:
        true if warn is enabled in the underlying logger.
      • trace

        public void trace​(String format,
                          Object... argsArray)
        Description copied from interface: Log

        Log an error with trace log level.

        Specified by:
        trace in interface Log
        Parameters:
        format -
        String format to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArray
        argsArray -
        array of arguments to add to log message including Throwable, String or any other Object for which string representation will be used
      • debug

        public void debug​(String format,
                          Object... argsArray)
        Description copied from interface: Log

        Log an error with debug log level.

        Specified by:
        debug in interface Log
        Parameters:
        format -
        String format to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArray
        argsArray -
        array of arguments to add to log message including Throwable, String or any other Object for which string representation will be used
      • info

        public void info​(String format,
                         Object... argsArray)
        Description copied from interface: Log

        Log an error with info log level.

        Specified by:
        info in interface Log
        Parameters:
        format -
        String format to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArray
        argsArray -
        array of arguments to add to log message including Throwable, String or any other Object for which string representation will be used
      • warn

        public void warn​(String format,
                         Object... argsArray)
        Description copied from interface: Log

        Log a message with warn log level.

        Specified by:
        warn in interface Log
        Parameters:
        format -
        String format to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArray
        argsArray -
        array of arguments to add to log message including Throwable, String or any other Object for which string representation will be used
      • error

        public void error​(String format,
                          Object... argsArray)
        Description copied from interface: Log

        Log a message with error log level.

        Specified by:
        error in interface Log
        Parameters:
        format -
        String format to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArray
        argsArray -
        array of arguments to add to log message including Throwable, String or any other Object for which string representation will be used
      • fatal

        public void fatal​(String format,
                          Object... argsArray)
        Description copied from interface: Log

        Log a message with fatal log level.

        Specified by:
        fatal in interface Log
        Parameters:
        format -
        String format to represent log message. Sequence of '{}' is used to represent an anchor which will be replaced by string representation of objects in argArray
        argsArray -
        array of arguments to add to log message including Throwable, String or any other Object for which string representation will be used