Class BasicEventLogger

  • All Implemented Interfaces:
    EventLogger

    public class BasicEventLogger
    extends Object
    implements EventLogger
    BasicEventLogger. An event logger which doesn't do anything aside from sending events to the logger
    Since:
    8.2
    Author:
    Tristan Tarrant
    • Constructor Detail

      • BasicEventLogger

        public BasicEventLogger()
    • Method Detail

      • scope

        public EventLogger scope​(String scope)
        Description copied from interface: EventLogger
        Sets the scope of this event log, e.g. a node address. This should be used for events which reference a single node in the cluster
        Specified by:
        scope in interface EventLogger
        Parameters:
        scope - a scope
        Returns:
        the event logger
      • context

        public EventLogger context​(String context)
        Description copied from interface: EventLogger
        Sets a context of this event log.
        Specified by:
        context in interface EventLogger
        Parameters:
        context - the name of the context
        Returns:
        the event logger
      • detail

        public EventLogger detail​(String detail)
        Description copied from interface: EventLogger
        Sets a detail for this event log which could include additional information.
        Specified by:
        detail in interface EventLogger
        Parameters:
        detail - the event log detail
        Returns:
        the event logger
      • who

        public EventLogger who​(String who)
        Description copied from interface: EventLogger
        Sets a security name for this event log.
        Specified by:
        who in interface EventLogger
        Parameters:
        who - the security name
        Returns:
        the event logger
      • log

        public void log​(EventLogLevel level,
                        EventLogCategory category,
                        String message)
        Description copied from interface: EventLogger
        Logs a message to the event log with the specified level
        Specified by:
        log in interface EventLogger
        Parameters:
        level - the severity level of the event
        message - the message to log