View Javadoc
1   package org.slf4j.event;
2   
3   import java.util.List;
4   
5   import org.slf4j.Marker;
6   
7   /**
8    * The minimal interface sufficient for the restitution of data passed
9    * by the user to the SLF4J API.
10   * 
11   * @author Ceki Gülcü
12   * @since 1.7.15
13   */
14  public interface LoggingEvent {
15  
16      Level getLevel();
17  
18      String getLoggerName();
19  
20      String getMessage();
21  
22      List<Object> getArguments();
23  
24      Object[] getArgumentArray();
25  
26      List<Marker> getMarkers();
27  
28      List<KeyValuePair> getKeyValuePairs();
29  
30      Throwable getThrowable();
31  
32      long getTimeStamp();
33  
34      String getThreadName();
35   
36      /**
37       * Returns the presumed caller boundary provided by the logging library (not the user of the library). 
38       * Null by default.
39       *  
40       * @return presumed caller, null by default.
41       */
42      default String getCallerBoundary() {
43          return null;
44      }
45  }