Class Log4JLogger

    • Constructor Summary

      Constructors 
      Constructor Description
      Log4JLogger()  
    • Method Summary

      Modifier and Type Method Description
      void debug​(java.lang.CharSequence msg)
      Logs a debugging message.
      void error​(java.lang.CharSequence msg)
      Logs an error message.
      void error​(java.lang.CharSequence msg, java.lang.Throwable t)
      Logs an error message plus message and stack-trace of the Throwable.
      protected int getCurrentLog4JLevel()  
      void info​(java.lang.CharSequence msg)
      Logs an informational message.
      void info​(java.lang.CharSequence msg, java.lang.Throwable t)
      Logs an informational message error plus message and stack-trace of the Throwable.
      boolean isDebugEnabled()
      Checks if debug log-output is enabled.
      boolean isErrorEnabled()
      Checks if error log-output is enabled.
      boolean isInfoEnabled()
      Checks if informational log-output is enabled.
      boolean isWarnEnabled()
      Checks if warning log-output is enabled.
      void setLevel​(int level)
      Sets the logging level.
      void warn​(java.lang.CharSequence msg)
      Logs a warning message.
      void warn​(java.lang.CharSequence msg, java.lang.Throwable t)
      Logs a warning message error plus message and stack-trace of the Throwable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log4j

        public static org.apache.logging.log4j.Logger log4j
    • Constructor Detail

      • Log4JLogger

        public Log4JLogger()
    • Method Detail

      • getCurrentLog4JLevel

        protected int getCurrentLog4JLevel()
      • setLevel

        public void setLevel​(int level)
        Description copied from class: Log.LoggerFacade
        Sets the logging level.
        Overrides:
        setLevel in class Log.LoggerFacade
        Parameters:
        level - The level.
      • error

        public void error​(java.lang.CharSequence msg)
        Description copied from class: Log.LoggerFacade
        Logs an error message.
        Specified by:
        error in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
      • warn

        public void warn​(java.lang.CharSequence msg)
        Description copied from class: Log.LoggerFacade
        Logs a warning message.
        Specified by:
        warn in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
      • info

        public void info​(java.lang.CharSequence msg)
        Description copied from class: Log.LoggerFacade
        Logs an informational message.
        Specified by:
        info in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
      • debug

        public void debug​(java.lang.CharSequence msg)
        Description copied from class: Log.LoggerFacade
        Logs a debugging message.
        Specified by:
        debug in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
      • error

        public void error​(java.lang.CharSequence msg,
                          java.lang.Throwable t)
        Description copied from class: Log.LoggerFacade
        Logs an error message plus message and stack-trace of the Throwable.
        Overrides:
        error in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
        t - The Throwable to trace.
      • warn

        public void warn​(java.lang.CharSequence msg,
                         java.lang.Throwable t)
        Description copied from class: Log.LoggerFacade
        Logs a warning message error plus message and stack-trace of the Throwable.
        Overrides:
        warn in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
        t - The Throwable to trace.
      • info

        public void info​(java.lang.CharSequence msg,
                         java.lang.Throwable t)
        Description copied from class: Log.LoggerFacade
        Logs an informational message error plus message and stack-trace of the Throwable.
        Overrides:
        info in class Log.LoggerFacade
        Parameters:
        msg - The text to log.
        t - The Throwable to trace.
      • isDebugEnabled

        public boolean isDebugEnabled()
        Description copied from class: Log.LoggerFacade
        Checks if debug log-output is enabled.
        Overrides:
        isDebugEnabled in class Log.LoggerFacade
        Returns:
        true if current log-level is equal to or higher than DEBUG.
      • isInfoEnabled

        public boolean isInfoEnabled()
        Description copied from class: Log.LoggerFacade
        Checks if informational log-output is enabled.
        Overrides:
        isInfoEnabled in class Log.LoggerFacade
        Returns:
        true if current log-level is equal to or higher than INFO.
      • isWarnEnabled

        public boolean isWarnEnabled()
        Description copied from class: Log.LoggerFacade
        Checks if warning log-output is enabled.
        Overrides:
        isWarnEnabled in class Log.LoggerFacade
        Returns:
        true if current log-level is equal to or higher than WARN.
      • isErrorEnabled

        public boolean isErrorEnabled()
        Description copied from class: Log.LoggerFacade
        Checks if error log-output is enabled.
        Overrides:
        isErrorEnabled in class Log.LoggerFacade
        Returns:
        true if current log-level is equal to or higher than WARN.