// Path: src/java/com/spinn3r/log5j/formatter/MessageFormatter.java
// public interface MessageFormatter {
//     String format(String format, Object... args);
// }


import com.spinn3r.log5j.formatter.MessageFormatter;
import org.slf4j.Marker;
import javax.annotation.Nullable;
import java.util.Arrays;
/*
 * Copyright 2010 "Tailrank, Inc (Spinn3r)"
 *
 * Licensed 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 com.spinn3r.log5j;



public class LogEvent {
    private static ThreadLocal<MessageFormatter> __tlMessageFormatter =
            new ThreadLocal<MessageFormatter>() {
                @Override
                protected MessageFormatter initialValue() {
                    return LogManager.__messageFormatterFactory.create();
                }
            };

    private final InternalLogger _internalLogger;

    private final long _time;

    private final Marker _marker;

    private final String _threadName;

    private final String _logName;

    private final LogLevel _level;

    private final String _formatMessage;

    private final Object[] _params;

    private final Throwable _throwable;

    private LogEvent(String threadName,
                     InternalLogger internalLogger,
                     @Nullable Marker marker,
                     String logName,
// Path: src/java/com/spinn3r/log5j/formatter/MessageFormatter.java
// public interface MessageFormatter {
//     String format(String format, Object... args);
// }


// Path: src/java/com/spinn3r/log5j/LogEvent.java
import com.spinn3r.log5j.formatter.MessageFormatter;
import org.slf4j.Marker;
import javax.annotation.Nullable;
import java.util.Arrays;

/*
 * Copyright 2010 "Tailrank, Inc (Spinn3r)"
 *
 * Licensed 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 com.spinn3r.log5j;



public class LogEvent {
    private static ThreadLocal<MessageFormatter> __tlMessageFormatter =
            new ThreadLocal<MessageFormatter>() {
                @Override
                protected MessageFormatter initialValue() {
                    return LogManager.__messageFormatterFactory.create();
                }
            };

    private final InternalLogger _internalLogger;

    private final long _time;

    private final Marker _marker;

    private final String _threadName;

    private final String _logName;

    private final LogLevel _level;

    private final String _formatMessage;

    private final Object[] _params;

    private final Throwable _throwable;

    private LogEvent(String threadName,
                     InternalLogger internalLogger,
                     @Nullable Marker marker,
                     String logName,
                     LogLevel level,