public class DecoratedEventLogger extends Object implements EventLogger
| Modifier and Type | Field and Description |
|---|---|
protected Optional<String> |
context |
protected Optional<String> |
detail |
protected Optional<String> |
scope |
protected Optional<String> |
who |
| Modifier | Constructor and Description |
|---|---|
protected |
DecoratedEventLogger(EventLogger delegate) |
| Modifier and Type | Method and Description |
|---|---|
EventLogger |
context(String context)
Sets a context of this event log.
|
EventLogger |
detail(String detail)
Sets a detail for this event log which could include additional information.
|
List<EventLog> |
getEvents(Instant start,
int count,
Optional<EventLogCategory> category,
Optional<EventLogLevel> level)
Retrieves the event logs from the cluster within the specified range
|
void |
log(EventLogLevel level,
EventLogCategory category,
String message)
Logs a message to the event log with the specified level
|
EventLogger |
scope(Address scope)
Sets a node address as the scope of this event log
|
EventLogger |
scope(String scope)
Sets the scope of this event log, e.g.
|
EventLogger |
who(String who)
Sets a security name for this event log.
|
protected DecoratedEventLogger(EventLogger delegate)
public void log(EventLogLevel level, EventLogCategory category, String message)
EventLoggerlog in interface EventLoggerlevel - the severity level of the eventmessage - the message to logpublic EventLogger who(String who)
EventLoggerwho in interface EventLoggerwho - the security namepublic EventLogger scope(String scope)
EventLoggerscope in interface EventLoggerscope - a scopepublic EventLogger scope(Address scope)
EventLoggerscope in interface EventLoggerscope - the address of the nodepublic EventLogger context(String context)
EventLoggercontext in interface EventLoggercontext - the name of the contextpublic EventLogger detail(String detail)
EventLoggerdetail in interface EventLoggerdetail - the event log detailpublic List<EventLog> getEvents(Instant start, int count, Optional<EventLogCategory> category, Optional<EventLogLevel> level)
EventLoggergetEvents in interface EventLoggerstart - 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.