Package org.eclnt.util.log
Class PLog
java.lang.Object
org.eclnt.util.log.PLog
- All Implemented Interfaces:
CLogConstants
Server side performance logging. An extra performance log is written that is
independent from the normal logging. The log contains:
Performance figures per request - both the client processing and the server processing.
Memory information
Additional information that may be passed by the application.
Log information is typically structure by some "type-prefix" (e.g. "REQUEST") and some semicolon separated String containing detail values ("name1:value1;name2:value2;...").
Performance figures per request - both the client processing and the server processing.
Memory information
Additional information that may be passed by the application.
Log information is typically structure by some "type-prefix" (e.g. "REQUEST") and some semicolon separated String containing detail values ("name1:value1;name2:value2;...").
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Loggerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.eclnt.util.log.CLogConstants
LL_DBG, LL_ERR, LL_INF, LL_WAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccumulateNumberInCurrentRequest(String type, long number) static voidstatic Stringstatic Stringstatic voidlogApplicationInfo(String keyword, String info) Interface for the application processing to add any information to this log.static voidlogClientProcessingInfo(String sessionId, String clientPerformanceData) Adding performance data that is sent from the client.static voidlogFileDownloadInfo(String sessionId, long total, long numberOfBytes) static voidlogFileUploadInfo(String sessionId, long total, long numberOfBytes) static voidlogLegendLine(String text) static voidstatic voidlogRequestInfo(String sessionId, long total, long invoke, String expression, long consumedNanosGet, long stampStartOfClientProcessing, long stampStartOfServerProcessing, String requestId, long stampStartOfWritingResponse, String applicationInfo, String accumulatedNumbers) Data added at end of processing.static voidsetCurrentRequestApplicationInfo(String applicationInfo) Each request is porotocolled with one line of comma separated values.static voidupdateLogLevel(Level newLevel)
-
Field Details
-
TYPE_REQUEST
- See Also:
-
TYPE_DOWNLOAD
- See Also:
-
TYPE_UPLOAD
- See Also:
-
TYPE_MEMORY
- See Also:
-
TYPE_LEGEND
- See Also:
-
L
-
-
Constructor Details
-
PLog
public PLog()
-
-
Method Details
-
setCurrentRequestApplicationInfo
Each request is porotocolled with one line of comma separated values. You can set the value of the "ApplicationInfo" section by calling this method. -
accumulateNumberInCurrentRequest
-
clearCurrentRequestApplicationInfo
public static void clearCurrentRequestApplicationInfo() -
getCurrentRequestApplicationInfo
-
getCurrentRequestAccumulatedNumbersInfo
-
updateLogLevel
-
logClientProcessingInfo
Adding performance data that is sent from the client. This data is added at the begin of a request processing. The content is a complex value in the format "name:value;name:value". -
logRequestInfo
public static void logRequestInfo(String sessionId, long total, long invoke, String expression, long consumedNanosGet, long stampStartOfClientProcessing, long stampStartOfServerProcessing, String requestId, long stampStartOfWritingResponse, String applicationInfo, String accumulatedNumbers) Data added at end of processing. -
logFileDownloadInfo
-
logFileUploadInfo
-
logMemoryInfo
public static void logMemoryInfo() -
logApplicationInfo
Interface for the application processing to add any information to this log. We recommend to build the info String following the conventions in PLog ("name:value;name:value;..."). You may usedValueManager.encodeComplexValue(Map)to build this String. -
logLegendLine
-