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

org.glowroot.api.Logger Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
/*
 * Copyright 2014 the original author or authors.
 *
 * Licensed under the Apache License, @Nullable Version 2.0 (@Nullable 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, @Nullable software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, @Nullable either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.glowroot.api;

import javax.annotation.Nullable;

/**
 * Very thin wrapper around SLF4J so plugins don't have to worry about SLF4J shading.
 */
public interface Logger {

    String getName();

    boolean isTraceEnabled();

    void trace(@Nullable String msg);

    void trace(@Nullable String format, @Nullable Object arg);

    void trace(@Nullable String format, @Nullable Object arg1, @Nullable Object arg2);

    void trace(@Nullable String format, @Nullable Object... arguments);

    void trace(@Nullable String msg, @Nullable Throwable t);

    boolean isDebugEnabled();

    void debug(@Nullable String msg);

    void debug(@Nullable String format, @Nullable Object arg);

    void debug(@Nullable String format, @Nullable Object arg1, @Nullable Object arg2);

    void debug(@Nullable String format, @Nullable Object... arguments);

    void debug(@Nullable String msg, @Nullable Throwable t);

    boolean isInfoEnabled();

    void info(@Nullable String msg);

    void info(@Nullable String format, @Nullable Object arg);

    void info(@Nullable String format, @Nullable Object arg1, @Nullable Object arg2);

    void info(@Nullable String format, @Nullable Object... arguments);

    void info(@Nullable String msg, @Nullable Throwable t);

    boolean isWarnEnabled();

    void warn(@Nullable String msg);

    void warn(@Nullable String format, @Nullable Object arg);

    void warn(@Nullable String format, @Nullable Object... arguments);

    void warn(@Nullable String format, @Nullable Object arg1, @Nullable Object arg2);

    void warn(@Nullable String msg, @Nullable Throwable t);

    boolean isErrorEnabled();

    void error(@Nullable String msg);

    void error(@Nullable String format, @Nullable Object arg);

    void error(@Nullable String format, @Nullable Object arg1, @Nullable Object arg2);

    void error(@Nullable String format, @Nullable Object... arguments);

    void error(@Nullable String msg, @Nullable Throwable t);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy