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
MethodLoggerusing I10n logging.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOG_KEY_ENTRYstatic StringLOG_KEY_EXCEPTIONstatic StringLOG_KEY_EXIT
-
Constructor Summary
Constructors Constructor Description I10nMethodLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogEntry(String className, String methodName, Object[] args)Logs a method entry.voidlogException(String className, String methodName, Throwable e)Logs a method failure with a exception.voidlogExit(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:MethodLoggerLogs a method entry.- Specified by:
logEntryin 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:MethodLoggerLogs a method exit.- Specified by:
logExitin 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:MethodLoggerLogs a method failure with a exception.- Specified by:
logExceptionin interfaceMethodLogger- Parameters:
className- the method's class namemethodName- the method's namee- the exception
-
-