View Javadoc
1   package org.slf4j.spi;
2   
3   import java.util.function.Supplier;
4   
5   import org.slf4j.Marker;
6   
7   /**
8    * A fluent API for creating logging events.
9    * 
10   * @author Ceki Gülcü
11   * @since 2.0.0
12   *
13   */
14  public interface LoggingEventBuilder {
15  
16      LoggingEventBuilder setCause(Throwable cause);
17  
18      LoggingEventBuilder addMarker(Marker marker);
19  
20      LoggingEventBuilder addArgument(Object p);
21  
22      LoggingEventBuilder addArgument(Supplier<?> objectSupplier);
23  
24      LoggingEventBuilder addKeyValue(String key, Object value);
25  
26      LoggingEventBuilder addKeyValue(String key, Supplier<Object> value);
27  
28      void log(String message);
29  
30      void log(String message, Object arg);
31  
32      void log(String message, Object arg0, Object arg1);
33  
34      void log(String message, Object... args);
35  
36      void log(Supplier<String> messageSupplier);
37  
38  }