Package org.craftercms.commons.logging
Class I10nMethodLogger
- java.lang.Object
-
- org.craftercms.commons.logging.I10nMethodLogger
-
- All Implemented Interfaces:
MethodLogger
public class I10nMethodLogger extends Object implements MethodLogger
MethodLogger
using I10n logging.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOG_KEY_ENTRY
static String
LOG_KEY_EXCEPTION
static String
LOG_KEY_EXIT
-
Constructor Summary
Constructors Constructor Description I10nMethodLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logEntry(String className, String methodName, Object[] args)
Logs a method entry.void
logException(String className, String methodName, Throwable e)
Logs a method failure with a exception.void
logExit(String className, String methodName, Object returnValue)
Logs a method exit.
-
-
-
Field Detail
-
LOG_KEY_ENTRY
public static final String LOG_KEY_ENTRY
- See Also:
- Constant Field Values
-
LOG_KEY_EXIT
public static final String LOG_KEY_EXIT
- See Also:
- Constant Field Values
-
LOG_KEY_EXCEPTION
public static final String LOG_KEY_EXCEPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
logEntry
public void logEntry(String className, String methodName, Object[] args)
Description copied from interface:MethodLogger
Logs a method entry.- Specified by:
logEntry
in interfaceMethodLogger
- Parameters:
className
- the method's class namemethodName
- the method's nameargs
- the method's arguments
-
logExit
public void logExit(String className, String methodName, Object returnValue)
Description copied from interface:MethodLogger
Logs a method exit.- Specified by:
logExit
in interfaceMethodLogger
- Parameters:
className
- the method's class namemethodName
- the method's namereturnValue
- the method's return value
-
logException
public void logException(String className, String methodName, Throwable e)
Description copied from interface:MethodLogger
Logs a method failure with a exception.- Specified by:
logException
in interfaceMethodLogger
- Parameters:
className
- the method's class namemethodName
- the method's namee
- the exception
-
-