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

org.nohope.logging.Logger Maven / Gradle / Ivy

There is a newer version: 0.2.3
Show newest version
package org.nohope.logging;

import org.slf4j.Marker;

/**
 * An extended {@link org.slf4j.Logger} interface.
 *
 * @author ketoth xupack
 * @since 2012-02-22 12:13
 */
public interface Logger extends org.slf4j.Logger {
    /**
     * Log an exception (throwable) at the TRACE level with an
     * accompanying message.
     *
     * @param t      the exception (throwable) to log
     * @param format the format string
     * @param args   an array of arguments
     */
    void trace(Throwable t, String format, Object... args);

    @Override
    void trace(String format, Object... args);

    @Override
    void trace(Marker marker, String format, Object... args);

    /**
     * Log an exception (throwable) at the DEBUG level with an
     * accompanying message.
     *
     * @param t      the exception (throwable) to log
     * @param format the format string
     * @param args   an array of arguments
     */
    void debug(Throwable t, String format, Object... args);

    @Override
    void debug(String format, Object... args);

    @Override
    void debug(Marker marker, String format, Object... args);

    /**
     * Log an exception (throwable) at the INFO level with an
     * accompanying message.
     *
     * @param t      the exception (throwable) to log
     * @param format the format string
     * @param args   an array of arguments
     */
    void info(Throwable t, String format, Object... args);

    @Override
    void info(String format, Object... args);

    @Override
    void info(Marker marker, String format, Object... args);

    /**
     * Log an exception (throwable) at the WARN level with an
     * accompanying message.
     *
     * @param t      the exception (throwable) to log
     * @param format the format string
     * @param args   an array of arguments
     */
    void warn(Throwable t, String format, Object... args);

    @Override
    void warn(String format, Object... args);

    @Override
    void warn(Marker marker, String format, Object... args);

    /**
     * Log an exception (throwable) at the ERROR level with an
     * accompanying message.
     *
     * @param t      the exception (throwable) to log
     * @param format the format string
     * @param args   an array of arguments
     */
    void error(Throwable t, String format, Object... args);

    @Override
    void error(String format, Object... args);

    @Override
    void error(Marker marker, String format, Object... args);

    void trace(Throwable t);
    void debug(Throwable t);
    void info(Throwable t);
    void warn(Throwable t);
    void error(Throwable t);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy