ch.qos.logback.classic.spi.ILoggingEvent Maven / Gradle / Ivy
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2009, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
* under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation.
*/
package ch.qos.logback.classic.spi;
import java.util.Map;
import org.slf4j.Marker;
import ch.qos.logback.classic.Level;
/**
* The central interface in logback-classic. In a nutshell, logback-classic is
* nothing more than a processing chain built around this interface.
*
* @author Ceki Gülcü
* @since 0.9.16
*/
public interface ILoggingEvent {
public String getThreadName();
public Level getLevel();
public String getMessage();
public Object[] getArgumentArray();
public String getFormattedMessage();
public String getLoggerName();
public LoggerContextVO getLoggerContextVO();
public IThrowableProxy getThrowableProxy();
/**
* Return caller data associated with this event. Note that calling this event
* may trigger the computation of caller data.
*
* @return the caller data associated with this event.
*
* @see #hasCallerData()
*/
public StackTraceElement[] getCallerData();
/**
* If this event has caller data, then true is returned. Otherwise the
* returned value is null.
*
* Logback components wishing to use caller data if available without
* causing it to be computed can invoke this method before invoking
* {@link #getCallerData()}.
*
* @return whether this event has caller data
*/
public boolean hasCallerData();
public Marker getMarker();
public Map getMDCPropertyMap();
public long getTimeStamp();
public void prepareForDeferredProcessing();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy