Class CallLog
java.lang.Object
org.exoplatform.webconferencing.support.CallLog
Diagnostic logging support for user calls. This class gathers all logs related to the call, from
preparation of UI to processing a conversation.
Created by The eXo Platform SAS
Created by The eXo Platform SAS
- Version:
- $Id: CallLog.java 00000 Dec 20, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant DEBUG_LEVEL.static final StringThe Constant ERROR_LEVEL.static final StringThe Constant INFO_LEVEL.static final intLog message critical length.protected static final intThe Constant MESSAGE_CRITICAL_LENGTH_FINAL.static final intLog message max length.static final StringThe Constant MESSAGE_NO_DATA.static final intMaximum expected age of a message not flushed to the logger.static final intMaximum messages buffer size after which we can flush it to the logger.static final intHow long to wait between checks in flush thread.static final StringThe Constant TRACE_LEVEL.static final StringThe Constant WARN_LEVEL. -
Method Summary
Modifier and TypeMethodDescriptionvoidDebug message.voiddebug(String msg, LocalDateTime timestamp) Debug message with timestamp.voidError message.voiderror(String msg, LocalDateTime timestamp) Error message with timestamp.voidInfo message.voidinfo(String msg, LocalDateTime timestamp) Info message with timestamp.voidTrace message.voidtrace(String msg, LocalDateTime timestamp) Trace message with timestamp.static StringValidate a message by cutting it if it is longer of 10240 bytes.protected StringvalidateFinal(String msg) Validate final.voidWarn message.voidwarn(String msg, LocalDateTime timestamp) Warn message with timestamp.
-
Field Details
-
TRACE_LEVEL
The Constant TRACE_LEVEL. -
DEBUG_LEVEL
The Constant DEBUG_LEVEL. -
INFO_LEVEL
The Constant INFO_LEVEL. -
WARN_LEVEL
The Constant WARN_LEVEL. -
ERROR_LEVEL
The Constant ERROR_LEVEL. -
MESSAGE_NO_DATA
The Constant MESSAGE_NO_DATA.- See Also:
-
MESSAGE_MAX_LENGTH
public static final int MESSAGE_MAX_LENGTHLog message max length.- See Also:
-
MESSAGE_CRITICAL_LENGTH
public static final int MESSAGE_CRITICAL_LENGTHLog message critical length. Values longer of this will be cut by the logger.- See Also:
-
MESSAGE_CRITICAL_LENGTH_FINAL
protected static final int MESSAGE_CRITICAL_LENGTH_FINALThe Constant MESSAGE_CRITICAL_LENGTH_FINAL.- See Also:
-
MESSAGES_BUFFER_MAX_SIZE
public static final int MESSAGES_BUFFER_MAX_SIZEMaximum messages buffer size after which we can flush it to the logger.- See Also:
-
MESSAGES_BUFFER_EXPIRATION_MILLIS
public static final int MESSAGES_BUFFER_EXPIRATION_MILLISMaximum expected age of a message not flushed to the logger.- See Also:
-
MESSAGES_BUFFER_WAIT_MILLIS
public static final int MESSAGES_BUFFER_WAIT_MILLISHow long to wait between checks in flush thread.- See Also:
-
-
Method Details
-
validate
Validate a message by cutting it if it is longer of 10240 bytes.- Parameters:
msg- the msg- Returns:
- the string
-
info
Info message.- Parameters:
msg- the msg
-
info
Info message with timestamp.- Parameters:
msg- the msgtimestamp- the timestamp, ifnullthen current time will be used
-
warn
Warn message.- Parameters:
msg- the msg
-
warn
Warn message with timestamp.- Parameters:
msg- the msgtimestamp- the timestamp, ifnullthen current time will be used
-
error
Error message.- Parameters:
msg- the msg
-
error
Error message with timestamp.- Parameters:
msg- the msgtimestamp- the timestamp, ifnullthen current time will be used
-
debug
Debug message.- Parameters:
msg- the msg
-
debug
Debug message with timestamp.- Parameters:
msg- the msgtimestamp- the timestamp, ifnullthen current time will be used
-
trace
Trace message.- Parameters:
msg- the msg
-
trace
Trace message with timestamp.- Parameters:
msg- the msgtimestamp- the timestamp, ifnullthen current time will be used
-
validateFinal
Validate final.- Parameters:
msg- the msg- Returns:
- the string
-