Constructor and Description |
---|
Log() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(Object object)
Log a message at Debug level.
|
static void |
debug(String message,
String... params)
Log a message at Debug level with parameters.
|
static void |
debug(String message,
Throwable t)
Log a message at Debug level including the stack trace of throwable object.
|
static void |
error(Object object)
Log a message at Debug level.
|
static void |
error(String message,
String... params)
Log a message at Debug level with parameters.
|
static void |
error(String message,
Throwable t)
Log a message at Debug level including the stack trace of throwable object.
|
static void |
info(Object object)
Log a message at Info level.
|
static void |
info(String message,
String... params)
Log a message at Info level with parameters.
|
static void |
info(String message,
Throwable t)
Log a message at Info level including the stack trace of throwable object.
|
static boolean |
isDebugEnabled()
Check if debug enabled.
|
static boolean |
isTraceEnabled()
Check if trace enabled.
|
static void |
trace(Object object)
Log a message at Trace level.
|
static void |
trace(String message,
String... params)
Log a message at Trace level with parameters.
|
static void |
trace(String message,
Throwable t)
Log a message at Trace level including the stack trace of throwable object.
|
static void |
warn(Object object)
Log a message at Warn level.
|
static void |
warn(String message,
String... params)
Log a message at Warn level with parameters.
|
static void |
warn(String message,
Throwable t)
Log a message at Warn level including the stack trace of throwable object.
|
public static boolean isTraceEnabled()
public static boolean isDebugEnabled()
public static void info(Object object)
object
- to log.public static void info(String message, String... params)
message
- string.params
- ex: Log.info("Error occurred, at {}, "4")public static void info(String message, Throwable t)
message
- the messaget
- the exceptionpublic static void warn(Object object)
object
- to log.public static void warn(String message, String... params)
message
- string.params
- ex: Log.info("SDP received at time {}", "23:23")public static void warn(String message, Throwable t)
message
- the messaget
- the exceptionpublic static void trace(Object object)
object
- to log.public static void trace(String message, String... params)
message
- string.params
- ex: Log.trace("Detailed message {}", "Not found")public static void trace(String message, Throwable t)
message
- the messaget
- the exceptionpublic static void debug(Object object)
object
- to log.public static void debug(String message, String... params)
message
- string.params
- ex: Log.debug("Sip header {}", sipContext.wscSipMessage?.header?.Event)public static void debug(String message, Throwable t)
message
- the messaget
- the exceptionpublic static void error(Object object)
object
- to log.public static void error(String message, String... params)
message
- string.params
- ex: Log.error("Error occurred, at line {}, error is {}, "4", "invalid line")