Package org.kuali.rice.ken.util
Class PerformanceLog
java.lang.Object
org.kuali.rice.ken.util.PerformanceLog
Wrapper for the Log4J performance log
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.logging.log4j.LoggerThis method returns an instance of the logger object.static voidlogDuration(String message, long duration) This method logs the duration information for a given message.startTimer(String message) This method returns a new stop watch instance.
-
Constructor Details
-
PerformanceLog
public PerformanceLog()
-
-
Method Details
-
getInstance
public static org.apache.logging.log4j.Logger getInstance()This method returns an instance of the logger object.- Returns:
- Logger
-
startTimer
This method returns a new stop watch instance.- Parameters:
message-- Returns:
- PerformanceStopWatch
-
logDuration
This method logs the duration information for a given message.- Parameters:
message-duration-
-