/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache license, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the license for the specific language governing permissions and
 * limitations under the license.
 */

package org.apache.logging.log4j.core;

import java.io.Serializable;
import java.util.Map;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.ThreadContext;
import org.apache.logging.log4j.core.impl.ThrowableProxy;
import org.apache.logging.log4j.message.Message;

/**
 *
 */
public interface LogEvent extends Serializable {

     /**
     * Get level.
     * @return level.
     */
    Level getLevel();

    /**
     * Get logger name.
     * @return logger name, may be null.
     */
    String getLoggerName();

    /**
     * Get source of logging request.
     * @return source of logging request, may be null.
     */
    StackTraceElement getSource();

    /**
     * Get the message associated with the event.
     *
     * @return message.
     */
    Message getMessage();

    /**
     * Get the Marker associated with the event.
     * @return Marker
     */
    Marker getMarker();

    /**
     * Get thread name.
     * @return thread name, may be null.
     * @doubt guess this could go into a thread context object too.
     * (RG) Why?
     */
    String getThreadName();


    /**
     * Get event time in milliseconds since 1970.
     * @return milliseconds since 1970.
     */
    long getMillis();


    /**
     * Get throwable associated with logging request.
     * @return throwable, may be null.
     */
    Throwable getThrown();


    /**
     * Get the MDC data.
     *
     * @return A copy of the Mapped Diagnostic Context or null.
     */
    Map<String, String> getContextMap();

    /**
     * Get the NDC data.
     *
     * @return A copy of the Nested Diagnostic Context or null;
     */
    ThreadContext.ContextStack getContextStack();

    /**
     * Returns the fully qualified class name of the caller of the logging api.
     * @return The fully qualified class name of the caller.
     */
    String getFQCN();

    /**
     * Returns whether the source of the logging request is required downstream.
     * Asynchronous Loggers and Appenders use this flag to determine whether
     * to take a {@code StackTrace} snapshot or not before handing off this
     * event to another thread.
     * @return {@code true} if the source of the logging request is required
     *          downstream, {@code false} otherwise.
     * @see #getSource()
     */
    // see also LOG4J2-153
    boolean isIncludeLocation();

    /**
     * Sets whether the source of the logging request is required downstream.
     * Asynchronous Loggers and Appenders use this flag to determine whether
     * to take a {@code StackTrace} snapshot or not before handing off this
     * event to another thread.
     * @param locationRequired {@code true} if the source of the logging request
     *           is required downstream, {@code false} otherwise.
     * @see #getSource()
     */
    void setIncludeLocation(boolean locationRequired);

    /**
     * Returns {@code true} if this event is the last one in a batch,
     * {@code false} otherwise. Used by asynchronous Loggers and Appenders to
     * signal to buffered downstream components when to flush to disk, as a
     * more efficient alternative to the {@code immediateFlush=true}
     * configuration.
     * @return whether this event is the last one in a batch.
     */
    // see also LOG4J2-164
    boolean isEndOfBatch();

    /**
     * Sets whether this event is the last one in a batch.
     * Used by asynchronous Loggers and Appenders to signal to buffered
     * downstream components when to flush to disk, as a more efficient
     * alternative to the {@code immediateFlush=true} configuration.
     * @param endOfBatch {@code true} if this event is the last one in a batch,
     * {@code false} otherwise.
     */
    void setEndOfBatch(boolean endOfBatch);
}

@@ -1017,66 +1017,8 @@
 xt;%0A
-import org.apache.logging.log4j.core.impl.ThrowableProxy;%0A
 impo

Remove unused import.