Class AuditSlf4jLogProperties
java.lang.Object
org.apereo.cas.configuration.model.core.audit.AuditSlf4jLogProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-core-audit",
automated=true)
public class AuditSlf4jLogProperties
extends Object
implements Serializable
This is
AuditSlf4jLogProperties
.- Since:
- 5.2.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionControl and define fields that can be accepted by the audit log.Character to separate audit fields if single-line audits are used.boolean
Decide whether Slf4j audits should be enabled.boolean
Indicates whether audit logs should be recorded as a single-line.setAuditableFields
(String auditableFields) Control and define fields that can be accepted by the audit log.setEnabled
(boolean enabled) Decide whether Slf4j audits should be enabled.setSinglelineSeparator
(String singlelineSeparator) Character to separate audit fields if single-line audits are used.setUseSingleLine
(boolean useSingleLine) Indicates whether audit logs should be recorded as a single-line.
-
Constructor Details
-
AuditSlf4jLogProperties
public AuditSlf4jLogProperties()
-
-
Method Details
-
isUseSingleLine
public boolean isUseSingleLine()Indicates whether audit logs should be recorded as a single-line.By default, audit logs are split into multiple lines where each action and activity takes up a full line. This is a more compact version.
-
getSinglelineSeparator
Character to separate audit fields if single-line audits are used. -
getAuditableFields
Control and define fields that can be accepted by the audit log. Accepted values are:who
what
action
application
when
user_agent
client_ip
server_ip
geo_location
headers
-
isEnabled
public boolean isEnabled()Decide whether Slf4j audits should be enabled. -
setUseSingleLine
Indicates whether audit logs should be recorded as a single-line.By default, audit logs are split into multiple lines where each action and activity takes up a full line. This is a more compact version.
- Returns:
this
.
-
setSinglelineSeparator
Character to separate audit fields if single-line audits are used.- Returns:
this
.
-
setAuditableFields
Control and define fields that can be accepted by the audit log. Accepted values are:who
what
action
application
when
user_agent
client_ip
server_ip
geo_location
headers
- Returns:
this
.
-
setEnabled
Decide whether Slf4j audits should be enabled.- Returns:
this
.
-