Class LogXF

  • Direct Known Subclasses:
    LogMF, LogSF

    public abstract class LogXF
    extends java.lang.Object
    This is a base class for LogMF and LogSF parameterized logging classes.
    Since:
    1.2.16
    See Also:
    LogMF, LogSF
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String FQCN
      Fully Qualified Class Name of this class.
      protected static Level TRACE
      Trace level.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LogXF()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void entering​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod)
      Log an entering message at DEBUG level.
      static void entering​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object param)
      Log an entering message with a parameter at DEBUG level.
      static void entering​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
      Log an entering message with an array of parameters at DEBUG level.
      static void entering​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String param)
      Log an entering message with a parameter at DEBUG level.
      static void exiting​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod)
      Log an exiting message at DEBUG level.
      static void exiting​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object result)
      Log an exiting message with result at DEBUG level.
      static void exiting​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String result)
      Log an exiting message with result at DEBUG level.
      static void throwing​(Logger logger, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Throwable thrown)
      Logs a throwing message at DEBUG level.
      protected static java.lang.Object[] toArray​(java.lang.Object param1)
      Create new array.
      protected static java.lang.Object[] toArray​(java.lang.Object param1, java.lang.Object param2)
      Create new array.
      protected static java.lang.Object[] toArray​(java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
      Create new array.
      protected static java.lang.Object[] toArray​(java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
      Create new array.
      protected static java.lang.Boolean valueOf​(boolean b)
      Returns a Boolean instance representing the specified boolean.
      protected static java.lang.Byte valueOf​(byte b)
      Returns a Byte instance representing the specified byte.
      protected static java.lang.Character valueOf​(char c)
      Returns a Character instance representing the specified char.
      protected static java.lang.Double valueOf​(double b)
      Returns a Double instance representing the specified double.
      protected static java.lang.Float valueOf​(float b)
      Returns a Float instance representing the specified float.
      protected static java.lang.Integer valueOf​(int b)
      Returns an Integer instance representing the specified int.
      protected static java.lang.Long valueOf​(long b)
      Returns a Long instance representing the specified long.
      protected static java.lang.Short valueOf​(short b)
      Returns a Short instance representing the specified short.
      • Methods inherited from class java.lang.Object

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

      • TRACE

        protected static final Level TRACE
        Trace level.
      • FQCN

        private static final java.lang.String FQCN
        Fully Qualified Class Name of this class.
    • Constructor Detail

      • LogXF

        protected LogXF()
    • Method Detail

      • valueOf

        protected static java.lang.Boolean valueOf​(boolean b)
        Returns a Boolean instance representing the specified boolean. Boolean.valueOf was added in JDK 1.4.
        Parameters:
        b - a boolean value.
        Returns:
        a Boolean instance representing b.
      • valueOf

        protected static java.lang.Character valueOf​(char c)
        Returns a Character instance representing the specified char. Character.valueOf was added in JDK 1.5.
        Parameters:
        c - a character value.
        Returns:
        a Character instance representing c.
      • valueOf

        protected static java.lang.Byte valueOf​(byte b)
        Returns a Byte instance representing the specified byte. Byte.valueOf was added in JDK 1.5.
        Parameters:
        b - a byte value.
        Returns:
        a Byte instance representing b.
      • valueOf

        protected static java.lang.Short valueOf​(short b)
        Returns a Short instance representing the specified short. Short.valueOf was added in JDK 1.5.
        Parameters:
        b - a short value.
        Returns:
        a Byte instance representing b.
      • valueOf

        protected static java.lang.Integer valueOf​(int b)
        Returns an Integer instance representing the specified int. Integer.valueOf was added in JDK 1.5.
        Parameters:
        b - an int value.
        Returns:
        an Integer instance representing b.
      • valueOf

        protected static java.lang.Long valueOf​(long b)
        Returns a Long instance representing the specified long. Long.valueOf was added in JDK 1.5.
        Parameters:
        b - a long value.
        Returns:
        a Long instance representing b.
      • valueOf

        protected static java.lang.Float valueOf​(float b)
        Returns a Float instance representing the specified float. Float.valueOf was added in JDK 1.5.
        Parameters:
        b - a float value.
        Returns:
        a Float instance representing b.
      • valueOf

        protected static java.lang.Double valueOf​(double b)
        Returns a Double instance representing the specified double. Double.valueOf was added in JDK 1.5.
        Parameters:
        b - a double value.
        Returns:
        a Byte instance representing b.
      • toArray

        protected static java.lang.Object[] toArray​(java.lang.Object param1)
        Create new array.
        Parameters:
        param1 - parameter 1.
        Returns:
        new array.
      • toArray

        protected static java.lang.Object[] toArray​(java.lang.Object param1,
                                                    java.lang.Object param2)
        Create new array.
        Parameters:
        param1 - parameter 1.
        param2 - parameter 2.
        Returns:
        new array.
      • toArray

        protected static java.lang.Object[] toArray​(java.lang.Object param1,
                                                    java.lang.Object param2,
                                                    java.lang.Object param3)
        Create new array.
        Parameters:
        param1 - parameter 1.
        param2 - parameter 2.
        param3 - parameter 3.
        Returns:
        new array.
      • toArray

        protected static java.lang.Object[] toArray​(java.lang.Object param1,
                                                    java.lang.Object param2,
                                                    java.lang.Object param3,
                                                    java.lang.Object param4)
        Create new array.
        Parameters:
        param1 - parameter 1.
        param2 - parameter 2.
        param3 - parameter 3.
        param4 - parameter 4.
        Returns:
        new array.
      • entering

        public static void entering​(Logger logger,
                                    java.lang.String sourceClass,
                                    java.lang.String sourceMethod)
        Log an entering message at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
      • entering

        public static void entering​(Logger logger,
                                    java.lang.String sourceClass,
                                    java.lang.String sourceMethod,
                                    java.lang.String param)
        Log an entering message with a parameter at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
        param - parameter, may be null.
      • entering

        public static void entering​(Logger logger,
                                    java.lang.String sourceClass,
                                    java.lang.String sourceMethod,
                                    java.lang.Object param)
        Log an entering message with a parameter at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
        param - parameter, may be null.
      • entering

        public static void entering​(Logger logger,
                                    java.lang.String sourceClass,
                                    java.lang.String sourceMethod,
                                    java.lang.Object[] params)
        Log an entering message with an array of parameters at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
        params - parameters, may be null.
      • exiting

        public static void exiting​(Logger logger,
                                   java.lang.String sourceClass,
                                   java.lang.String sourceMethod)
        Log an exiting message at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
      • exiting

        public static void exiting​(Logger logger,
                                   java.lang.String sourceClass,
                                   java.lang.String sourceMethod,
                                   java.lang.String result)
        Log an exiting message with result at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
        result - result, may be null.
      • exiting

        public static void exiting​(Logger logger,
                                   java.lang.String sourceClass,
                                   java.lang.String sourceMethod,
                                   java.lang.Object result)
        Log an exiting message with result at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
        result - result, may be null.
      • throwing

        public static void throwing​(Logger logger,
                                    java.lang.String sourceClass,
                                    java.lang.String sourceMethod,
                                    java.lang.Throwable thrown)
        Logs a throwing message at DEBUG level.
        Parameters:
        logger - logger, may not be null.
        sourceClass - source class, may be null.
        sourceMethod - method, may be null.
        thrown - throwable, may be null.