Package com.hazelcast.auditlog
Interface AuditlogService
public interface AuditlogService
Service for logging
AuditableEvents
. Standard events have their type identifiers defined as constants
in the AuditlogTypeIds
class.
The invocations on this interface may be done in performance sensitive places so the implementation should not do anything too heavy.
-
Method Summary
Modifier and TypeMethodDescriptionEventBuilder<?>
eventBuilder
(String typeId) Returns an instance of theEventBuilder
interface.void
log
(AuditableEvent auditableEvent) Logs given event.void
Creates and logs a simple parameterless message at the given level.void
Creates and logs a simple parameterless message with an associated throwable at the given level.
-
Method Details
-
log
Logs given event.- Parameters:
auditableEvent
- the event to be logged.
-
log
Creates and logs a simple parameterless message at the given level.- Parameters:
level
- the log leveleventTypeId
- unique identifier of the event typemessage
- the message to log
-
log
Creates and logs a simple parameterless message with an associated throwable at the given level.- Parameters:
message
- the message to logeventTypeId
- unique identifier of the event typethrown
- the Throwable associated to the message
-
eventBuilder
Returns an instance of theEventBuilder
interface. It can be performance optimized (e.g. when Event Audit logging is disabled). TheEventBuilder
allows creatingauditable events
by using simple fluent API.- Parameters:
typeId
- Unique identifier for given type of auditable event.- Returns:
EventBuilder
instance
-