public interface AuditService
| Modifier and Type | Method and Description |
|---|---|
void |
audit(String user,
String action,
String message,
Object params)
Log the audit message.
|
boolean |
isLogging()
Checks if is audit service is logging.
|
void audit(String user, String action, String message, Object params)
user - the user (may be null if non-auth)action - an action represneting the action which is being performmessage - the descriptive message (or null)params - the params any parameters (typically variables passed, or response codes)boolean isLogging()
If not then audit() will not be called (and other work will not be done).
Most implementation will have this fixed (to true), but it is called each time an audit message may be generated, so it can change dynamically.
Copyright © 2017–2018 Committed. All rights reserved.