public class CallLog extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_LEVEL
The Constant DEBUG_LEVEL.
|
static String |
ERROR_LEVEL
The Constant ERROR_LEVEL.
|
static String |
INFO_LEVEL
The Constant INFO_LEVEL.
|
static int |
MESSAGE_CRITICAL_LENGTH
Log message critical length.
|
protected static int |
MESSAGE_CRITICAL_LENGTH_FINAL
The Constant MESSAGE_CRITICAL_LENGTH_FINAL.
|
static int |
MESSAGE_MAX_LENGTH
Log message max length.
|
static String |
MESSAGE_NO_DATA
The Constant MESSAGE_NO_DATA.
|
static int |
MESSAGES_BUFFER_EXPIRATION_MILLIS
Maximum expected age of a message not flushed to the logger.
|
static int |
MESSAGES_BUFFER_MAX_SIZE
Maximum messages buffer size after which we can flush it to the logger.
|
static int |
MESSAGES_BUFFER_WAIT_MILLIS
How long to wait between checks in flush thread.
|
static String |
TRACE_LEVEL
The Constant TRACE_LEVEL.
|
static String |
WARN_LEVEL
The Constant WARN_LEVEL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String msg)
Debug message.
|
void |
debug(String msg,
LocalDateTime timestamp)
Debug message with timestamp.
|
void |
error(String msg)
Error message.
|
void |
error(String msg,
LocalDateTime timestamp)
Error message with timestamp.
|
void |
info(String msg)
Info message.
|
void |
info(String msg,
LocalDateTime timestamp)
Info message with timestamp.
|
void |
trace(String msg)
Trace message.
|
void |
trace(String msg,
LocalDateTime timestamp)
Trace message with timestamp.
|
static String |
validate(String msg)
Validate a message by cutting it if it is longer of 10240 bytes.
|
protected String |
validateFinal(String msg)
Validate final.
|
void |
warn(String msg)
Warn message.
|
void |
warn(String msg,
LocalDateTime timestamp)
Warn message with timestamp.
|
public static final String TRACE_LEVEL
public static final String DEBUG_LEVEL
public static final String INFO_LEVEL
public static final String WARN_LEVEL
public static final String ERROR_LEVEL
public static final String MESSAGE_NO_DATA
public static final int MESSAGE_MAX_LENGTH
public static final int MESSAGE_CRITICAL_LENGTH
protected static final int MESSAGE_CRITICAL_LENGTH_FINAL
public static final int MESSAGES_BUFFER_MAX_SIZE
public static final int MESSAGES_BUFFER_EXPIRATION_MILLIS
public static final int MESSAGES_BUFFER_WAIT_MILLIS
public static String validate(String msg)
msg - the msgpublic void info(String msg)
msg - the msgpublic void info(String msg, LocalDateTime timestamp)
msg - the msgtimestamp - the timestamp, if null then current time will be usedpublic void warn(String msg)
msg - the msgpublic void warn(String msg, LocalDateTime timestamp)
msg - the msgtimestamp - the timestamp, if null then current time will be usedpublic void error(String msg)
msg - the msgpublic void error(String msg, LocalDateTime timestamp)
msg - the msgtimestamp - the timestamp, if null then current time will be usedpublic void debug(String msg)
msg - the msgpublic void debug(String msg, LocalDateTime timestamp)
msg - the msgtimestamp - the timestamp, if null then current time will be usedpublic void trace(String msg)
msg - the msgpublic void trace(String msg, LocalDateTime timestamp)
msg - the msgtimestamp - the timestamp, if null then current time will be usedCopyright © 2003–2021 eXo Platform SAS. All rights reserved.