public class LogHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
PERF_LOG
Logger to track performance.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getLoggingLocations()
Find registered log file appender
|
static boolean |
logPerformance(Query<?,?> queryDefinition)
Log performance if its enabled, and its a definition we want to check
|
static void |
logPerformance(String message,
org.apache.commons.lang.time.StopWatch stopWatch)
Log the stop watch
|
public static Map<String,String> getLoggingLocations()
public static boolean logPerformance(Query<?,?> queryDefinition)
queryDefinition - the definition to use for checkingpublic static void logPerformance(String message, org.apache.commons.lang.time.StopWatch stopWatch)
message - the message, preferably the class name and methodstopWatch - the stop time to watchCopyright © 2019 Communote team. All rights reserved.