Package org.apache.log4j
Class LogXF
java.lang.Object
org.apache.log4j.LogXF
This is a base class for LogMF and LogSF parameterized logging classes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog an entering message at DEBUG level.static voidLog an entering message with a parameter at DEBUG level.static voidLog an entering message with an array of parameters at DEBUG level.static voidLog an entering message with a parameter at DEBUG level.static voidLog an exiting message at DEBUG level.static voidLog an exiting message with result at DEBUG level.static voidLog an exiting message with result at DEBUG level.static voidLogs a throwing message at DEBUG level.protected static Object[]Create new array.protected static Object[]Create new array.protected static Object[]Create new array.protected static Object[]Create new array.protected static BooleanvalueOf(boolean b) Returns a Boolean instance representing the specified boolean.protected static BytevalueOf(byte b) Returns a Byte instance representing the specified byte.protected static CharactervalueOf(char c) Returns a Character instance representing the specified char.protected static DoublevalueOf(double b) Returns a Double instance representing the specified double.protected static FloatvalueOf(float b) Returns a Float instance representing the specified float.protected static IntegervalueOf(int b) Returns an Integer instance representing the specified int.protected static LongvalueOf(long b) Returns a Long instance representing the specified long.protected static ShortvalueOf(short b) Returns a Short instance representing the specified short.
-
Field Details
-
TRACE
Trace level.
-
-
Constructor Details
-
LogXF
protected LogXF()
-
-
Method Details
-
valueOf
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
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
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
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
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
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
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
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
Create new array.- Parameters:
param1- parameter 1.- Returns:
- new array.
-
toArray
Create new array.- Parameters:
param1- parameter 1.param2- parameter 2.- Returns:
- new array.
-
toArray
Create new array.- Parameters:
param1- parameter 1.param2- parameter 2.param3- parameter 3.- Returns:
- new array.
-
toArray
Create new array.- Parameters:
param1- parameter 1.param2- parameter 2.param3- parameter 3.param4- parameter 4.- Returns:
- new array.
-
entering
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
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
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, 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.
-
exiting
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
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
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, 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.
-