public abstract class

LogXF

extends Object
java.lang.Object
   ↳ org.apache.log4j.LogXF
Known Direct Subclasses

Class Overview

This is a base class for LogMF and LogSF parameterized logging classes.

See Also

Summary

Fields
protected static final Level TRACE Trace level.
Protected Constructors
LogXF()
Public Methods
static void entering(Logger logger, String sourceClass, String sourceMethod, Object param)
Log an entering message with a parameter at DEBUG level.
static void entering(Logger logger, String sourceClass, String sourceMethod, Object[] params)
Log an entering message with an array of parameters at DEBUG level.
static void entering(Logger logger, String sourceClass, String sourceMethod)
Log an entering message at DEBUG level.
static void entering(Logger logger, String sourceClass, String sourceMethod, String param)
Log an entering message with a parameter at DEBUG level.
static void exiting(Logger logger, String sourceClass, String sourceMethod)
Log an exiting message at DEBUG level.
static void exiting(Logger logger, String sourceClass, String sourceMethod, String result)
Log an exiting message with result at DEBUG level.
static void exiting(Logger logger, String sourceClass, String sourceMethod, Object result)
Log an exiting message with result at DEBUG level.
static void throwing(Logger logger, String sourceClass, String sourceMethod, Throwable thrown)
Logs a throwing message at DEBUG level.
Protected Methods
static Object[] toArray(Object param1, Object param2, Object param3)
Create new array.
static Object[] toArray(Object param1, Object param2)
Create new array.
static Object[] toArray(Object param1)
Create new array.
static Object[] toArray(Object param1, Object param2, Object param3, Object param4)
Create new array.
static Boolean valueOf(boolean b)
Returns a Boolean instance representing the specified boolean.
static Character valueOf(char c)
Returns a Character instance representing the specified char.
static Long valueOf(long b)
Returns a Long instance representing the specified long.
static Double valueOf(double b)
Returns a Double instance representing the specified double.
static Integer valueOf(int b)
Returns an Integer instance representing the specified int.
static Byte valueOf(byte b)
Returns a Byte instance representing the specified byte.
static Float valueOf(float b)
Returns a Float instance representing the specified float.
static Short valueOf(short b)
Returns a Short instance representing the specified short.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static final Level TRACE

Trace level.

Protected Constructors

protected LogXF ()

Public Methods

public static void entering (Logger logger, String sourceClass, String sourceMethod, 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.

public static void entering (Logger logger, String sourceClass, String sourceMethod, 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.

public static void entering (Logger logger, String sourceClass, 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.

public static void entering (Logger logger, String sourceClass, String sourceMethod, 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.

public static void exiting (Logger logger, String sourceClass, 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.

public static void exiting (Logger logger, String sourceClass, String sourceMethod, 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.

public static void exiting (Logger logger, String sourceClass, String sourceMethod, 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.

public static void throwing (Logger logger, String sourceClass, String sourceMethod, 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.

Protected Methods

protected static Object[] toArray (Object param1, Object param2, Object param3)

Create new array.

Parameters
param1 parameter 1.
param2 parameter 2.
param3 parameter 3.
Returns
  • new array.

protected static Object[] toArray (Object param1, Object param2)

Create new array.

Parameters
param1 parameter 1.
param2 parameter 2.
Returns
  • new array.

protected static Object[] toArray (Object param1)

Create new array.

Parameters
param1 parameter 1.
Returns
  • new array.

protected static Object[] toArray (Object param1, Object param2, Object param3, Object param4)

Create new array.

Parameters
param1 parameter 1.
param2 parameter 2.
param3 parameter 3.
param4 parameter 4.
Returns
  • new array.

protected static 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.

protected static 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.

protected static 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.

protected static 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.

protected static 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.

protected static 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.

protected static 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.

protected static 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.