Package org.slf4j.spi

Interface LocationAwareLogger

  • All Superinterfaces:
    Logger

    public interface LocationAwareLogger
    extends Logger
    An optional interface helping integration with logging systems capable of extracting location information. This interface is mainly used by SLF4J bridges such as jcl-over-slf4j, jul-to-slf4j and log4j-over-slf4j or Logger wrappers which need to provide hints so that the underlying logging system can extract the correct location information (method name, line number).
    Since:
    1.3
    Author:
    Ceki Gulcu
    • Method Detail

      • log

        void log​(Marker marker,
                 String fqcn,
                 int level,
                 String message,
                 Object[] argArray,
                 Throwable t)
        Printing method with support for location information.
        Parameters:
        marker - The marker to be used for this event, may be null.
        fqcn - The fully qualified class name of the logger instance, typically the logger class, logger bridge or a logger wrapper.
        level - One of the level integers defined in this interface
        message - The message for the log event
        t - Throwable associated with the log event, may be null.