public interface EventLogger
| Modifier and Type | Method and Description |
|---|---|
default EventLogger |
context(Cache<?,?> cache)
Sets a cache as context of this event log.
|
default EventLogger |
context(String context)
Sets a context of this event log.
|
default EventLogger |
detail(String detail)
Sets a detail for this event log which could include additional information.
|
default EventLogger |
detail(Throwable t)
Sets a throwable to include as detail for this event.
|
default void |
error(EventLogCategory category,
String message)
Logs a message to the event log using the
EventLogLevel.ERROR severity |
default void |
fatal(EventLogCategory category,
String message)
Logs a message to the event log using the
EventLogLevel.FATAL severity |
List<EventLog> |
getEvents(Instant start,
int count,
Optional<EventLogCategory> category,
Optional<EventLogLevel> level)
Retrieves the event logs from the cluster within the specified range
|
default void |
info(EventLogCategory category,
String message)
Logs a message to the event log using the
EventLogLevel.INFO severity |
void |
log(EventLogLevel level,
EventLogCategory category,
String message)
Logs a message to the event log with the specified level
|
default EventLogger |
scope(Address scope)
Sets a node address as the scope of this event log
|
default EventLogger |
scope(String scope)
Sets the scope of this event log, e.g.
|
default void |
warn(EventLogCategory category,
String message)
Logs a message to the event log using the
EventLogLevel.WARN severity |
default EventLogger |
who(Principal principal)
Sets a security principal for this event log.
|
default EventLogger |
who(String s)
Sets a security name for this event log.
|
default EventLogger |
who(Subject subject)
Sets a security subject for this event log.
|
void log(EventLogLevel level, EventLogCategory category, String message)
level - the severity level of the eventmessage - the message to logdefault void info(EventLogCategory category, String message)
EventLogLevel.INFO severitymessage - the message to logdefault void warn(EventLogCategory category, String message)
EventLogLevel.WARN severitymessage - the message to logdefault void error(EventLogCategory category, String message)
EventLogLevel.ERROR severitymessage - the message to logdefault void fatal(EventLogCategory category, String message)
EventLogLevel.FATAL severitymessage - the message to logdefault EventLogger scope(String scope)
scope - a scopedefault EventLogger scope(Address scope)
scope - the address of the nodedefault EventLogger context(Cache<?,?> cache)
cache - the cache to set as contextdefault EventLogger context(String context)
context - the name of the contextdefault EventLogger detail(String detail)
detail - the event log detaildefault EventLogger detail(Throwable t)
detail - a throwabledefault EventLogger who(Subject subject)
subject - the security subjectdefault EventLogger who(Principal principal)
principal - the security principaldefault EventLogger who(String s)
s - the security nameList<EventLog> getEvents(Instant start, int count, Optional<EventLogCategory> category, Optional<EventLogLevel> level)
start - the instant from which to retrieve the logscount - the number of logs to retrievecategory - an optional category filterlevel - an optional level filterEventLogsCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.