Class LogEvent

    • Field Detail

      • MARKER_BEGIN

        public static final org.slf4j.Marker MARKER_BEGIN
        The marker to use to indicate that we start a group of logs.
      • MARKER_END

        public static final org.slf4j.Marker MARKER_END
        The marker to use to indicate that we stop a group of logs.
    • Constructor Detail

      • LogEvent

        public LogEvent()
        Matches any LogEvent.
      • LogEvent

        public LogEvent​(LogEvent logEvent)
        Parameters:
        logEvent - the log event to copy
        Since:
        5.4M1
      • LogEvent

        public LogEvent​(LogLevel level,
                        String message,
                        Object[] argumentArray,
                        Throwable throwable)
        Parameters:
        level - the log level
        message - the log message
        argumentArray - the event arguments to insert in the message
        throwable - the throwable associated to the event
      • LogEvent

        public LogEvent​(org.slf4j.Marker marker,
                        LogLevel level,
                        String message,
                        Object[] argumentArray,
                        Throwable throwable)
        Parameters:
        marker - the log marker
        level - the log level
        message - the log message
        argumentArray - the event arguments to insert in the message
        throwable - the throwable associated to the event
        Since:
        4.3M
      • LogEvent

        public LogEvent​(org.slf4j.Marker marker,
                        LogLevel level,
                        String message,
                        Object[] argumentArray,
                        Throwable throwable,
                        long timeStamp)
        Parameters:
        marker - the log marker
        level - the log level
        message - the log message
        argumentArray - the event arguments to insert in the message
        throwable - the throwable associated to the event
        timeStamp - the number of milliseconds elapsed from 1/1/1970 until logging event was created.
        Since:
        6.4M1
    • Method Detail

      • log

        public void log​(org.slf4j.Logger targetLogger)
        Copy the stored log into a passed Logger.
        Parameters:
        targetLogger - the logger where to copy the stored log
        Since:
        5.3M1
      • getLevel

        public LogLevel getLevel()
        Returns:
        the log level
      • getTimeStamp

        public long getTimeStamp()
        Returns:
        the number of milliseconds elapsed from 1/1/1970 until logging event was created
      • matches

        public boolean matches​(Object otherEvent)
        Specified by:
        matches in interface Event