public interface MetricsLoggingService
| Modifier and Type | Method and Description |
|---|---|
org.slf4j.profiler.Profiler |
createNestedProfiler(String parentProfilerName,
String nestedProfilerName)
Create a sub profiler of an existing profiler
|
boolean |
isEnabled()
Returns
true if the logging is generally enabled; false otherwise. |
boolean |
isProfilingEnabled()
Returns
true if the profiler logging is generally enabled; false otherwise. |
void |
logContentEvent(String user,
String sessionID,
String ipAddress,
String nodeIdentifier,
String path,
String nodeType,
String logTemplate,
String... args)
Log some metric about a node.
|
org.slf4j.profiler.Profiler |
startProfiler(String profilerName)
Start a new profiler and return it to the caller.
|
void |
startProfiler(String profilerName,
String action)
Start a profiler and start the associated action (if the profilerName is not found it will create it)
|
void |
stopNestedProfiler(String parentProfilerName,
String nestedProfilerName)
Stop a nested profiler
|
void |
stopProfiler(String profilerName)
Stop all profiling for this profiler name
|
boolean isEnabled()
true if the logging is generally enabled; false otherwise.true if the logging is generally enabled; false otherwiseboolean isProfilingEnabled()
true if the profiler logging is generally enabled; false otherwise.true if the profiler logging is generally enabled; false otherwisevoid logContentEvent(String user, String sessionID, String ipAddress, String nodeIdentifier, String path, String nodeType, String logTemplate, String... args)
user - user achieving the operationipAddress - IP address of the usersessionID - if available, the identifier of the session, otherwise null or an empty string is fine. Note
that if you use null it will be output verbatim in the log.nodeIdentifier - if available, the node identifier on which the event took place, otherwise nullpath - the node path on which the operation has been achievednodeType - the type of the nodelogTemplate - the name of the template log you want to use.args - variable list of arguments depending of the template you choosevoid startProfiler(String profilerName, String action)
profilerName - name of the profiler you want to use or createaction - the action you want to profilevoid stopProfiler(String profilerName)
profilerName - the name of the profiler you want to stoporg.slf4j.profiler.Profiler createNestedProfiler(String parentProfilerName, String nestedProfilerName)
parentProfilerName - the parent profiler namenestedProfilerName - the sub profiler namevoid stopNestedProfiler(String parentProfilerName, String nestedProfilerName)
parentProfilerName - the parent profiler namenestedProfilerName - the sub profiler nameorg.slf4j.profiler.Profiler startProfiler(String profilerName)
profilerName - the new profiler you want to startCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.