Modifier and Type | Method and Description |
---|---|
static boolean |
isEnabled(org.apache.logging.log4j.Level level)
Determines whether a log message will be written when the supplied level is used.
|
static void |
logAction(PersistAction action,
String message)
Logs the execution of the supplied action.
|
static void |
logSuccessfulAction(PersistAction action,
String message)
Logs the successful execution of the supplied action.
|
static void |
logUnsuccessfulAction(PersistAction action,
org.apache.logging.log4j.Level logLevel,
String message,
Throwable cause)
Logs the unsuccessful execution of the supplied action, using the supplied logLevel.
|
static void |
logUnsuccessfulAction(PersistAction action,
String message,
Throwable cause)
Logs the unsuccessful execution of the supplied action.
|
public static boolean isEnabled(org.apache.logging.log4j.Level level)
level
- The log level to check whether it is loggable.public static void logAction(PersistAction action, String message)
Level.DEBUG
.action
- The action to log.message
- The message to log.public static void logSuccessfulAction(PersistAction action, String message)
Level.DEBUG
.action
- The action to log.message
- The message to log.public static void logUnsuccessfulAction(PersistAction action, String message, Throwable cause)
Level.ERROR
.action
- The action to log.message
- The message to log.cause
- The throwable that caused the failure.public static void logUnsuccessfulAction(PersistAction action, org.apache.logging.log4j.Level logLevel, String message, Throwable cause)
action
- The action to log.logLevel
- The log level to use.message
- The message to log.cause
- The throwable that caused the failure.Copyright © 2008–2018. All rights reserved.