public interface AuditlogService
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.
Modifier and Type | Method and Description |
---|---|
EventBuilder<?> |
eventBuilder(String typeId)
Returns an instance of the
EventBuilder interface. |
void |
log(AuditableEvent auditableEvent)
Logs given event.
|
void |
log(String eventTypeId,
Level level,
String message)
Creates and logs a simple parameterless message at the given level.
|
void |
log(String eventTypeId,
Level level,
String message,
Throwable thrown)
Creates and logs a simple parameterless message with an associated throwable at the given level.
|
void log(AuditableEvent auditableEvent)
auditableEvent
- the event to be logged.void log(String eventTypeId, Level level, String message)
level
- the log leveleventTypeId
- unique identifier of the event typemessage
- the message to logvoid log(String eventTypeId, Level level, String message, Throwable thrown)
message
- the message to logeventTypeId
- unique identifier of the event typethrown
- the Throwable associated to the messageEventBuilder<?> eventBuilder(String typeId)
EventBuilder
interface. It can be performance optimized (e.g. when Event Audit logging
is disabled). The EventBuilder
allows creating auditable events
by using simple fluent
API.typeId
- Unique identifier for given type of auditable event.EventBuilder
instanceCopyright © 2022 Hazelcast, Inc.. All rights reserved.