public class WebhookReceiverLogger
extends java.lang.Object
build.gradle file to add the commons-lang library, import
org.apache.commons.lang.StringEscapeUtils, and uncomment the relevant
code in filter(String).| Constructor and Description |
|---|
WebhookReceiverLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
debug(java.lang.String... messages)
Logs a message with the debug log level.
|
static void |
entering(java.lang.String className,
java.lang.String methodName)
Logs a message with the trace log level.
|
static void |
error(java.lang.String... messages)
Logs a message with the error log level.
|
static void |
error(java.lang.String message,
java.lang.Throwable t)
Logs a message and a relevant exception that prompted the message with
the error log level.
|
static void |
exiting(java.lang.String className,
java.lang.String methodName)
Logs a message with the trace log level.
|
static void |
info(java.lang.String... messages)
Logs a message with the info log level.
|
static void |
throwing(java.lang.String msg,
java.lang.Throwable t)
Logs a trace message when the code is about to throw an exception.
|
static void |
trace(java.lang.String... messages)
Logs a message with the trace log level.
|
static void |
warn(java.lang.String... messages)
Logs a message with the warn log level.
|
static void |
warn(java.lang.String message,
java.lang.Throwable t)
Logs a message and a relevant exception that prompted the message with
the warn log level.
|
public static void info(java.lang.String... messages)
messages - the set of messages to logpublic static void warn(java.lang.String... messages)
messages - the set of messages to logpublic static void warn(java.lang.String message,
java.lang.Throwable t)
message - the message to logt - cause to log with the messagepublic static void error(java.lang.String... messages)
messages - the set of messages to logpublic static void error(java.lang.String message,
java.lang.Throwable t)
message - the message to logt - cause to log with the messagepublic static void throwing(java.lang.String msg,
java.lang.Throwable t)
msg - Message to log with the exceptiont - Exception to logpublic static void trace(java.lang.String... messages)
messages - the set of messages to logpublic static void debug(java.lang.String... messages)
messages - the set of messages to logpublic static void entering(java.lang.String className,
java.lang.String methodName)
className - Name of the class to which the logging method belongsmethodName - Name of the method that was just startedpublic static void exiting(java.lang.String className,
java.lang.String methodName)
className - Name of the class to which the logging method belongsmethodName - Name of the method that just finished