Class Log

    • Constructor Summary

      Constructors 
      Constructor Description
      Log()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String getClassName​(int iDepth)
      getClassName of the class on the call stack.
      protected static java.lang.String getMethodName​(int iDepth)
      getMethodName of the method on the call stack.
      static void log​(Logger iLogger, int iDelegationLevel, Level iLevel, java.lang.String iMessage)
      log will log to the input iLogger.
      static void log​(Logger iLogger, int iDelegationLevel, Level iLevel, java.lang.String iMessage, java.lang.Object iSingleArg)
      log will log to the input iLogger.
      static void log​(Logger iLogger, int iDelegationLevel, Level iLevel, java.lang.String iMessage, java.lang.Throwable iThrowable)
      log will log to the input iLogger.
      static void log​(Logger iLogger, Level iLevel, java.lang.String iMessage)
      log will log to the input iLogger.
      static void log​(Logger iLogger, Level iLevel, java.lang.String iMessage, java.lang.Object iSingleArg)
      log will log to the input iLogger.
      static void log​(Logger iLogger, Level iLevel, java.lang.String iMessage, java.lang.Throwable iThrowable)
      log will log to the input iLogger.
      • Methods inherited from class java.lang.Object

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

      • logger

        public static final Logger logger
    • Constructor Detail

      • Log

        public Log()
    • Method Detail

      • log

        public static void log​(Logger iLogger,
                               Level iLevel,
                               java.lang.String iMessage,
                               java.lang.Object iSingleArg)
        log will log to the input iLogger. The method name and class name are not resolved unless the log level is currently loggable
        Parameters:
        iLogger -
        iLevel -
        iMessage -
        iSingleArg -
      • log

        public static void log​(Logger iLogger,
                               int iDelegationLevel,
                               Level iLevel,
                               java.lang.String iMessage,
                               java.lang.Object iSingleArg)
        log will log to the input iLogger. The method name and class name are not resolved unless the log level is currently loggable
        Parameters:
        iLogger -
        iDelegationLevel - 1 means the class and method names from here, 2 means use the class and method names of the caller of this method
        iLevel -
        iMessage -
        iSingleArg -
      • log

        public static void log​(Logger iLogger,
                               Level iLevel,
                               java.lang.String iMessage,
                               java.lang.Throwable iThrowable)
        log will log to the input iLogger. The method name and class name are not resolved unless the log level is currently loggable
        Parameters:
        iLogger -
        iLevel -
        iMessage -
        iThrowable -
      • log

        public static void log​(Logger iLogger,
                               int iDelegationLevel,
                               Level iLevel,
                               java.lang.String iMessage,
                               java.lang.Throwable iThrowable)
        log will log to the input iLogger. The method name and class name are not resolved unless the log level is currently loggable
        Parameters:
        iLogger -
        iDelegationLevel - 1 means the class and method names from here, 2 means use the class and method names of the caller of this method
        iLevel -
        iMessage -
        iThrowable -
      • log

        public static void log​(Logger iLogger,
                               Level iLevel,
                               java.lang.String iMessage)
        log will log to the input iLogger. The method name and class name are not resolved unless the log level is currently loggable
        Parameters:
        iLogger -
        iLevel -
        iMessage -
      • log

        public static void log​(Logger iLogger,
                               int iDelegationLevel,
                               Level iLevel,
                               java.lang.String iMessage)
        log will log to the input iLogger. The method name and class name are not resolved unless the log level is currently loggable
        Parameters:
        iLogger -
        iDelegationLevel - 1 means the class and method names from here, 2 means use the class and method names of the caller of this method
        iLevel -
        iMessage -
      • getMethodName

        protected static java.lang.String getMethodName​(int iDepth)
        getMethodName of the method on the call stack. You need to go up the stack by iDepth to get the one you really want.
        Parameters:
        iDepth -
        Returns:
      • getClassName

        protected static java.lang.String getClassName​(int iDepth)
        getClassName of the class on the call stack. You need to go up the stack by iDepth to get the one you really want.
        Parameters:
        iDepth -
        Returns: