All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.slf4j.event.LoggingEvent Maven / Gradle / Ivy

There is a newer version: 2.1.0-alpha1
Show newest version
package org.slf4j.event;

import java.util.List;

import org.slf4j.Marker;

/**
 * The minimal interface sufficient for the restitution of data passed
 * by the user to the SLF4J API.
 * 
 * @author Ceki Gülcü
 * @since 1.7.15
 */
public interface LoggingEvent {

    Level getLevel();

    String getLoggerName();

    String getMessage();

    List getArguments();

    Object[] getArgumentArray();

    /**
     * List of markers in the event, might be null.
     * @return markers in the event, might be null.
     */
    List getMarkers();

    List getKeyValuePairs();

    Throwable getThrowable();

    long getTimeStamp();

    String getThreadName();
 
    /**
     * Returns the presumed caller boundary provided by the logging library (not the user of the library). 
     * Null by default.
     *  
     * @return presumed caller, null by default.
     */
    default String getCallerBoundary() {
        return null;
    }
}