public class LogWarn extends Object
DEBUG level is enabled.| Modifier and Type | Method and Description |
|---|---|
static void |
logWarn(org.slf4j.Logger log,
String message,
Throwable cause)
Log a warning, optionally including a full stack trace if the logger's
DEBUG level is enabled. |
public static void logWarn(org.slf4j.Logger log,
String message,
Throwable cause)
DEBUG level is enabled.
That is, if DEBUG is enabled, the logger gets the warning with a full stack trace included.
Otherwise, the exception's .toString() is appended to the message, keeping it comparatively brief.
log - the logger to receive the warning messagemessage - the message to be loggedcause - the exception that triggered the warningCopyright © 2017 Atlassian. All rights reserved.