org.apache.logging.log4j.internal

Class DefaultLogBuilder

  • All Implemented Interfaces:
    LogBuilder


    public class DefaultLogBuilder
    extends Object
    implements LogBuilder
    Collects data for a log event and then logs it. This class should be considered private.
    • Constructor Detail

      • DefaultLogBuilder

        public DefaultLogBuilder(Logger logger,
                                 Level level)
      • DefaultLogBuilder

        public DefaultLogBuilder(Logger logger)
    • Method Detail

      • reset

        public LogBuilder reset(Level level)
        This method should be considered internal. It is used to reset the LogBuilder for a new log message.
        Parameters:
        level - The logging level for this event.
        Returns:
        This LogBuilder instance.
      • isInUse

        public boolean isInUse()
      • log

        public void log(String message,
                        Object... params)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        params - parameters to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3,
                        Object p4)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        p4 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3,
                        Object p4,
                        Object p5)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        p4 - parameter to the message.
        p5 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3,
                        Object p4,
                        Object p5,
                        Object p6)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        p4 - parameter to the message.
        p5 - parameter to the message.
        p6 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3,
                        Object p4,
                        Object p5,
                        Object p6,
                        Object p7)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        p4 - parameter to the message.
        p5 - parameter to the message.
        p6 - parameter to the message.
        p7 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3,
                        Object p4,
                        Object p5,
                        Object p6,
                        Object p7,
                        Object p8)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        p4 - parameter to the message.
        p5 - parameter to the message.
        p6 - parameter to the message.
        p7 - parameter to the message.
        p8 - parameter to the message.
        See Also:
        Unbox
      • log

        public void log(String message,
                        Object p0,
                        Object p1,
                        Object p2,
                        Object p3,
                        Object p4,
                        Object p5,
                        Object p6,
                        Object p7,
                        Object p8,
                        Object p9)
        Description copied from interface: LogBuilder
        Logs a message with parameters.
        Specified by:
        log in interface LogBuilder
        Parameters:
        message - the message to log; the format depends on the message factory.
        p0 - parameter to the message.
        p1 - parameter to the message.
        p2 - parameter to the message.
        p3 - parameter to the message.
        p4 - parameter to the message.
        p5 - parameter to the message.
        p6 - parameter to the message.
        p7 - parameter to the message.
        p8 - parameter to the message.
        p9 - parameter to the message.
        See Also:
        Unbox

Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.