public final class SecurityLogger extends Object
Modifier and Type | Method and Description |
---|---|
static void |
audit(String message)
Logs a message object with the
INFO level. |
static void |
audit(String message,
Object... params)
Logs a message with parameters at the
INFO level. |
static void |
audit(String message,
org.apache.shiro.subject.Subject subject)
Logs a message object with the
INFO level. |
static void |
audit(String message,
org.apache.shiro.subject.Subject subject,
Object... params)
Logs a message with parameters at the
INFO level. |
static void |
audit(String message,
org.apache.shiro.subject.Subject subject,
org.apache.logging.log4j.util.Supplier... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
INFO level. |
static void |
audit(String message,
org.apache.shiro.subject.Subject subject,
Throwable t)
|
static void |
audit(String message,
org.apache.logging.log4j.util.Supplier... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
INFO level. |
static void |
audit(String message,
Throwable t)
|
static void |
auditWarn(String message)
Logs a message object with the
WARN level. |
static void |
auditWarn(String message,
Object... params)
Logs a message with parameters at the
WARN level. |
static void |
auditWarn(String message,
org.apache.shiro.subject.Subject subject)
Logs a message object with the
WARN level. |
static void |
auditWarn(String message,
org.apache.shiro.subject.Subject subject,
Object... params)
Logs a message with parameters at the
WARN level. |
static void |
auditWarn(String message,
org.apache.shiro.subject.Subject subject,
org.apache.logging.log4j.util.Supplier... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
WARN level. |
static void |
auditWarn(String message,
org.apache.shiro.subject.Subject subject,
Throwable t)
|
static void |
auditWarn(String message,
org.apache.logging.log4j.util.Supplier... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
WARN level. |
static void |
auditWarn(String message,
Throwable t)
|
public static void audit(String message, org.apache.shiro.subject.Subject subject)
INFO
level.message
- the message string to log.subject
- the user subject to logpublic static void audit(String message)
INFO
level.message
- the message string to log.public static void audit(String message, org.apache.shiro.subject.Subject subject, Object... params)
INFO
level.message
- the message to log; the format depends on the message factory.subject
- the user subject to logparams
- parameters to the message.public static void audit(String message, Object... params)
INFO
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.public static void audit(String message, org.apache.shiro.subject.Subject subject, org.apache.logging.log4j.util.Supplier... paramSuppliers)
INFO
level.message
- the message to log; the format depends on the message factory.subject
- the user subject to logparamSuppliers
- An array of functions, which when called, produce the desired log message
parameters.public static void audit(String message, org.apache.logging.log4j.util.Supplier... paramSuppliers)
INFO
level.message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message
parameters.public static void audit(String message, org.apache.shiro.subject.Subject subject, Throwable t)
message
- the message object to log.subject
- the user subject to logt
- the exception to log, including its stack trace.public static void audit(String message, Throwable t)
message
- the message object to log.t
- the exception to log, including its stack trace.public static void auditWarn(String message, org.apache.shiro.subject.Subject subject)
WARN
level.message
- the message string to log.subject
- the user subject to logpublic static void auditWarn(String message)
WARN
level.message
- the message string to log.public static void auditWarn(String message, org.apache.shiro.subject.Subject subject, Object... params)
WARN
level.message
- the message to log; the format depends on the message factory.subject
- the user subject to logparams
- parameters to the message.public static void auditWarn(String message, Object... params)
WARN
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.public static void auditWarn(String message, org.apache.shiro.subject.Subject subject, org.apache.logging.log4j.util.Supplier... paramSuppliers)
WARN
level.message
- the message to log; the format depends on the message factory.subject
- the user subject to logparamSuppliers
- An array of functions, which when called, produce the desired log message
parameters.public static void auditWarn(String message, org.apache.logging.log4j.util.Supplier... paramSuppliers)
WARN
level.message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message
parameters.public static void auditWarn(String message, org.apache.shiro.subject.Subject subject, Throwable t)
message
- the message object to log.subject
- the user subject to logt
- the exception to log, including its stack trace.This work is licensed under a Creative Commons Attribution 4.0 International License.