---
meta-description: declaration: package: org.slf4j, interface: Logger
meta-generator: javadoc/ClassWriterImpl
meta-viewport: width=device-width, initial-scale=1
title: Logger (SLF4J javadoc)
---


JavaScript is disabled on your browser.

   

[Skip navigation links](#skip-navbar-top "Skip navigation links")

- [Overview](../../index.html)
- [Package](package-summary.html)
- Class
- [Use](class-use/Logger.html)
- [Tree](package-tree.html)
- [Deprecated](../../deprecated-list.html)
- [Index](../../index-all.html)
- [Help](../../help-doc.html#class)


- Summary:

  - Nested
  - [Field](#field-summary)
  - Constr
  - [Method](#method-summary)

- Detail:

  - [Field](#field-detail)
  - Constr
  - [Method](#method-detail)

- Summary:
- Nested |
- [Field](#field-summary) |
- Constr |
- [Method](#method-summary)


- Detail:
- [Field](#field-detail) |
- Constr |
- [Method](#method-detail)

[SEARCH](../../search.html)

Package [org.slf4j](package-summary.html)

# Interface Logger

All Known Subinterfaces:
`[LocationAwareLogger](spi/LocationAwareLogger.html "interface in org.slf4j.spi")`

All Known Implementing Classes:
`[AbstractLogger](helpers/AbstractLogger.html "class in org.slf4j.helpers")`, `[EventRecordingLogger](event/EventRecordingLogger.html "class in org.slf4j.event")`, `[LegacyAbstractLogger](helpers/LegacyAbstractLogger.html "class in org.slf4j.helpers")`, `[MarkerIgnoringBase](helpers/MarkerIgnoringBase.html "class in org.slf4j.helpers")`, `[NOPLogger](helpers/NOPLogger.html "class in org.slf4j.helpers")`, `[SubstituteLogger](helpers/SubstituteLogger.html "class in org.slf4j.helpers")`

---


public interface [Logger](../../src-html/org/slf4j/Logger.html#line-84)

The org.slf4j.Logger interface is the main user entry point of SLF4J API.
 It is expected that logging takes place through concrete implementations
 of this interface.

### Typical usage pattern:

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;

    public class Wombat {

      final static Logger logger = LoggerFactory.getLogger(Wombat.class);
      Integer t;
      Integer oldT;

      public void setTemperature(Integer temperature) {
        oldT = t;
        t = temperature;
        logger.debug("Temperature set to {}. Old temperature was {}.", t, oldT);
        if (temperature.intValue() > 50) {
          logger.info("Temperature has risen above 50 degrees.");
        }
      }
    }
  

Note that version 2.0 of the SLF4J API introduces a [fluent api](../../../manual.html#fluent),
 the most significant API change to occur in the last 20 years.

Be sure to read the FAQ entry relating to [parameterized logging](../../../faq.html#logging_performance). Note that logging statements can be parameterized in [presence of an exception/throwable](../../../faq.html#paramException).

Once you are comfortable using loggers, i.e. instances of this interface, consider using [MDC](MDC.html) as well as [Markers](Marker.html).

Author:
Ceki Gülcü

- ## Field Summary
  Fields
  
  Modifier and Type
  Field
  Description
  `static final [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang")`
  `[ROOT_LOGGER_NAME](#ROOT_LOGGER_NAME)`
  
  Case-insensitive String constant used to retrieve the name of the root logger.
- ## Method Summary
  
  All Methods

Instance Methods

Abstract Methods

Default Methods

  
  
  Modifier and Type
  Method
  Description
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[atDebug](#atDebug())()`
  
  Entry point for fluent-logging for [`Level.DEBUG`](event/Level.html#DEBUG) level.
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[atError](#atError())()`
  
  Entry point for fluent-logging for [`Level.ERROR`](event/Level.html#ERROR) level.
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[atInfo](#atInfo())()`
  
  Entry point for fluent-logging for [`Level.INFO`](event/Level.html#INFO) level.
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[atLevel](#atLevel(org.slf4j.event.Level))([Level](event/Level.html "enum in org.slf4j.event") level)`
  
  Make a new [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance as appropriate for this logger and the
 desired [`Level`](event/Level.html "enum in org.slf4j.event") passed as parameter.
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[atTrace](#atTrace())()`
  
  Entry point for fluent-logging for [`Level.TRACE`](event/Level.html#TRACE) level.
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[atWarn](#atWarn())()`
  
  Entry point for fluent-logging for [`Level.WARN`](event/Level.html#WARN) level.
  `void`
  `[debug](#debug(java.lang.String))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message at the DEBUG level.
  `void`
  `[debug](#debug(java.lang.String,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  Log a message at the DEBUG level according to the specified format
 and argument.
  `void`
  `[debug](#debug(java.lang.String,java.lang.Object...))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  Log a message at the DEBUG level according to the specified format
 and arguments.
  `void`
  `[debug](#debug(java.lang.String,java.lang.Object,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  Log a message at the DEBUG level according to the specified format
 and arguments.
  `void`
  `[debug](#debug(java.lang.String,java.lang.Throwable))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  Log an exception (throwable) at the DEBUG level with an
 accompanying message.
  `void`
  `[debug](#debug(org.slf4j.Marker,java.lang.String))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message with the specific Marker at the DEBUG level.
  `void`
  `[debug](#debug(org.slf4j.Marker,java.lang.String,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  This method is similar to [`debug(String, Object)`](#debug(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.
  `void`
  `[debug](#debug(org.slf4j.Marker,java.lang.String,java.lang.Object...))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  This method is similar to [`debug(String, Object...)`](#debug(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.
  `void`
  `[debug](#debug(org.slf4j.Marker,java.lang.String,java.lang.Object,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  This method is similar to [`debug(String, Object, Object)`](#debug(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.
  `void`
  `[debug](#debug(org.slf4j.Marker,java.lang.String,java.lang.Throwable))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  This method is similar to [`debug(String, Throwable)`](#debug(java.lang.String,java.lang.Throwable)) method except that the
 marker data is also taken into consideration.
  `void`
  `[error](#error(java.lang.String))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message at the ERROR level.
  `void`
  `[error](#error(java.lang.String,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  Log a message at the ERROR level according to the specified format
 and argument.
  `void`
  `[error](#error(java.lang.String,java.lang.Object...))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  Log a message at the ERROR level according to the specified format
 and arguments.
  `void`
  `[error](#error(java.lang.String,java.lang.Object,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  Log a message at the ERROR level according to the specified format
 and arguments.
  `void`
  `[error](#error(java.lang.String,java.lang.Throwable))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  Log an exception (throwable) at the ERROR level with an
 accompanying message.
  `void`
  `[error](#error(org.slf4j.Marker,java.lang.String))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message with the specific Marker at the ERROR level.
  `void`
  `[error](#error(org.slf4j.Marker,java.lang.String,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  This method is similar to [`error(String, Object)`](#error(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.
  `void`
  `[error](#error(org.slf4j.Marker,java.lang.String,java.lang.Object...))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  This method is similar to [`error(String, Object...)`](#error(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.
  `void`
  `[error](#error(org.slf4j.Marker,java.lang.String,java.lang.Object,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  This method is similar to [`error(String, Object, Object)`](#error(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.
  `void`
  `[error](#error(org.slf4j.Marker,java.lang.String,java.lang.Throwable))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  This method is similar to [`error(String, Throwable)`](#error(java.lang.String,java.lang.Throwable)) method except that the marker data is also taken into
 consideration.
  `[String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang")`
  `[getName](#getName())()`
  
  Return the name of this `Logger` instance.
  `void`
  `[info](#info(java.lang.String))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message at the INFO level.
  `void`
  `[info](#info(java.lang.String,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  Log a message at the INFO level according to the specified format
 and argument.
  `void`
  `[info](#info(java.lang.String,java.lang.Object...))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  Log a message at the INFO level according to the specified format
 and arguments.
  `void`
  `[info](#info(java.lang.String,java.lang.Object,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  Log a message at the INFO level according to the specified format
 and arguments.
  `void`
  `[info](#info(java.lang.String,java.lang.Throwable))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  Log an exception (throwable) at the INFO level with an
 accompanying message.
  `void`
  `[info](#info(org.slf4j.Marker,java.lang.String))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message with the specific Marker at the INFO level.
  `void`
  `[info](#info(org.slf4j.Marker,java.lang.String,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  This method is similar to [`info(String, Object)`](#info(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.
  `void`
  `[info](#info(org.slf4j.Marker,java.lang.String,java.lang.Object...))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  This method is similar to [`info(String, Object...)`](#info(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.
  `void`
  `[info](#info(org.slf4j.Marker,java.lang.String,java.lang.Object,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  This method is similar to [`info(String, Object, Object)`](#info(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.
  `void`
  `[info](#info(org.slf4j.Marker,java.lang.String,java.lang.Throwable))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  This method is similar to [`info(String, Throwable)`](#info(java.lang.String,java.lang.Throwable)) method
 except that the marker data is also taken into consideration.
  `boolean`
  `[isDebugEnabled](#isDebugEnabled())()`
  
  Is the logger instance enabled for the DEBUG level?
  `boolean`
  `[isDebugEnabled](#isDebugEnabled(org.slf4j.Marker))([Marker](Marker.html "interface in org.slf4j") marker)`
  
  Similar to [`isDebugEnabled()`](#isDebugEnabled()) method except that the
 marker data is also taken into account.
  `default boolean`
  `[isEnabledForLevel](#isEnabledForLevel(org.slf4j.event.Level))([Level](event/Level.html "enum in org.slf4j.event") level)`
  
  Returns whether this Logger is enabled for a given [`Level`](event/Level.html "enum in org.slf4j.event").
  `boolean`
  `[isErrorEnabled](#isErrorEnabled())()`
  
  Is the logger instance enabled for the ERROR level?
  `boolean`
  `[isErrorEnabled](#isErrorEnabled(org.slf4j.Marker))([Marker](Marker.html "interface in org.slf4j") marker)`
  
  Similar to [`isErrorEnabled()`](#isErrorEnabled()) method except that the
 marker data is also taken into consideration.
  `boolean`
  `[isInfoEnabled](#isInfoEnabled())()`
  
  Is the logger instance enabled for the INFO level?
  `boolean`
  `[isInfoEnabled](#isInfoEnabled(org.slf4j.Marker))([Marker](Marker.html "interface in org.slf4j") marker)`
  
  Similar to [`isInfoEnabled()`](#isInfoEnabled()) method except that the marker
 data is also taken into consideration.
  `boolean`
  `[isTraceEnabled](#isTraceEnabled())()`
  
  Is the logger instance enabled for the TRACE level?
  `boolean`
  `[isTraceEnabled](#isTraceEnabled(org.slf4j.Marker))([Marker](Marker.html "interface in org.slf4j") marker)`
  
  Similar to [`isTraceEnabled()`](#isTraceEnabled()) method except that the
 marker data is also taken into account.
  `boolean`
  `[isWarnEnabled](#isWarnEnabled())()`
  
  Is the logger instance enabled for the WARN level?
  `boolean`
  `[isWarnEnabled](#isWarnEnabled(org.slf4j.Marker))([Marker](Marker.html "interface in org.slf4j") marker)`
  
  Similar to [`isWarnEnabled()`](#isWarnEnabled()) method except that the marker
 data is also taken into consideration.
  `default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi")`
  `[makeLoggingEventBuilder](#makeLoggingEventBuilder(org.slf4j.event.Level))([Level](event/Level.html "enum in org.slf4j.event") level)`
  
  Make a new [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance as appropriate for this logger implementation.
  `void`
  `[trace](#trace(java.lang.String))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message at the TRACE level.
  `void`
  `[trace](#trace(java.lang.String,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  Log a message at the TRACE level according to the specified format
 and argument.
  `void`
  `[trace](#trace(java.lang.String,java.lang.Object...))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  Log a message at the TRACE level according to the specified format
 and arguments.
  `void`
  `[trace](#trace(java.lang.String,java.lang.Object,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  Log a message at the TRACE level according to the specified format
 and arguments.
  `void`
  `[trace](#trace(java.lang.String,java.lang.Throwable))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  Log an exception (throwable) at the TRACE level with an
 accompanying message.
  `void`
  `[trace](#trace(org.slf4j.Marker,java.lang.String))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message with the specific Marker at the TRACE level.
  `void`
  `[trace](#trace(org.slf4j.Marker,java.lang.String,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  This method is similar to [`trace(String, Object)`](#trace(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.
  `void`
  `[trace](#trace(org.slf4j.Marker,java.lang.String,java.lang.Object...))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... argArray)`
  
  This method is similar to [`trace(String, Object...)`](#trace(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.
  `void`
  `[trace](#trace(org.slf4j.Marker,java.lang.String,java.lang.Object,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  This method is similar to [`trace(String, Object, Object)`](#trace(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.
  `void`
  `[trace](#trace(org.slf4j.Marker,java.lang.String,java.lang.Throwable))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  This method is similar to [`trace(String, Throwable)`](#trace(java.lang.String,java.lang.Throwable)) method except that the
 marker data is also taken into consideration.
  `void`
  `[warn](#warn(java.lang.String))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message at the WARN level.
  `void`
  `[warn](#warn(java.lang.String,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  Log a message at the WARN level according to the specified format
 and argument.
  `void`
  `[warn](#warn(java.lang.String,java.lang.Object...))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  Log a message at the WARN level according to the specified format
 and arguments.
  `void`
  `[warn](#warn(java.lang.String,java.lang.Object,java.lang.Object))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  Log a message at the WARN level according to the specified format
 and arguments.
  `void`
  `[warn](#warn(java.lang.String,java.lang.Throwable))([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  Log an exception (throwable) at the WARN level with an
 accompanying message.
  `void`
  `[warn](#warn(org.slf4j.Marker,java.lang.String))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)`
  
  Log a message with the specific Marker at the WARN level.
  `void`
  `[warn](#warn(org.slf4j.Marker,java.lang.String,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)`
  
  This method is similar to [`warn(String, Object)`](#warn(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.
  `void`
  `[warn](#warn(org.slf4j.Marker,java.lang.String,java.lang.Object...))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)`
  
  This method is similar to [`warn(String, Object...)`](#warn(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.
  `void`
  `[warn](#warn(org.slf4j.Marker,java.lang.String,java.lang.Object,java.lang.Object))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1,
 [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)`
  
  This method is similar to [`warn(String, Object, Object)`](#warn(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.
  `void`
  `[warn](#warn(org.slf4j.Marker,java.lang.String,java.lang.Throwable))([Marker](Marker.html "interface in org.slf4j") marker,
 [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg,
 [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)`
  
  This method is similar to [`warn(String, Throwable)`](#warn(java.lang.String,java.lang.Throwable)) method
 except that the marker data is also taken into consideration.


- ## Field Details
  - ### ROOT_LOGGER_NAME
    static final [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") [ROOT_LOGGER_NAME](../../src-html/org/slf4j/Logger.html#line-91)
    Case-insensitive String constant used to retrieve the name of the root logger.


Since:
1.3

See Also:
- [Constant Field Values](../../constant-values.html#org.slf4j.Logger.ROOT_LOGGER_NAME)

- ## Method Details
  - ### getName
    [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") [getName](../../src-html/org/slf4j/Logger.html#line-97)()
    Return the name of this `Logger` instance.


Returns:
name of this logger instance

  - ### makeLoggingEventBuilder
    default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [makeLoggingEventBuilder](../../src-html/org/slf4j/Logger.html#line-114)([Level](event/Level.html "enum in org.slf4j.event") level)
            Make a new [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance as appropriate for this logger implementation.
 This default implementation always returns a new instance of [`DefaultLoggingEventBuilder`](spi/DefaultLoggingEventBuilder.html "class in org.slf4j.spi").

  

        This method is intended to be used by logging systems implementing the SLF4J API and **not** by end users.

  

        Also note that a [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance should be built for all levels,
 independently of the level argument. In other words, this method is an **unconditional** constructor for the [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") appropriate for this logger implementation.

  

Parameters:
`level` - desired level for the event builder

Returns:
a new [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance as appropriate for **this** logger

Since:
2.0

  - ### atLevel
    [@CheckReturnValue](helpers/CheckReturnValue.html "annotation in org.slf4j.helpers")default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [atLevel](../../src-html/org/slf4j/Logger.html#line-128)([Level](event/Level.html "enum in org.slf4j.event") level)
    Make a new [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance as appropriate for this logger and the
 desired [`Level`](event/Level.html "enum in org.slf4j.event") passed as parameter. If this Logger is disabled for the given Level, then
 a [`NOPLoggingEventBuilder`](spi/NOPLoggingEventBuilder.html "class in org.slf4j.spi") is returned.


Parameters:
`level` - desired level for the event builder

Returns:
a new [`LoggingEventBuilder`](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") instance as appropriate for this logger

Since:
2.0

  - ### isEnabledForLevel
    default boolean [isEnabledForLevel](../../src-html/org/slf4j/Logger.html#line-145)([Level](event/Level.html "enum in org.slf4j.event") level)
    Returns whether this Logger is enabled for a given [`Level`](event/Level.html "enum in org.slf4j.event").


Parameters:
`level` -

Returns:
true if enabled, false otherwise.

  - ### isTraceEnabled
    boolean [isTraceEnabled](../../src-html/org/slf4j/Logger.html#line-170)()
    Is the logger instance enabled for the TRACE level?


Returns:
True if this Logger is enabled for the TRACE level,
 false otherwise.

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-178)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message at the TRACE level.


Parameters:
`msg` - the message string to be logged

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-191)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    Log a message at the TRACE level according to the specified format
 and argument. This form avoids superfluous object creation when the logger
 is disabled for the TRACE level.

Parameters:
`format` - the format string

`arg` - the argument

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-205)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    Log a message at the TRACE level according to the specified format
 and arguments. This form avoids superfluous object creation when the logger
 is disabled for the TRACE level.

Parameters:
`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-221)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    Log a message at the TRACE level according to the specified format
 and arguments. This form avoids superfluous string concatenation when the logger
 is disabled for the TRACE level. However, this variant incurs the hidden
 (and relatively small) cost of creating an `Object[]` before invoking the method,
 even if this logger is disabled for TRACE. The variants taking [`one`](#trace(java.lang.String,java.lang.Object)) and [`two`](#trace(java.lang.String,java.lang.Object,java.lang.Object)) arguments exist solely in order to avoid this hidden cost.

Parameters:
`format` - the format string

`arguments` - a list of 3 or more arguments

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-231)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    Log an exception (throwable) at the TRACE level with an
 accompanying message.


Parameters:
`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

Since:
1.4

  - ### isTraceEnabled
    boolean [isTraceEnabled](../../src-html/org/slf4j/Logger.html#line-243)([Marker](Marker.html "interface in org.slf4j") marker)
    Similar to [`isTraceEnabled()`](#isTraceEnabled()) method except that the
 marker data is also taken into account.


Parameters:
`marker` - The marker data to take into consideration

Returns:
True if this Logger is enabled for the TRACE level,
 false otherwise.

Since:
1.4

  - ### atTrace
    [@CheckReturnValue](helpers/CheckReturnValue.html "annotation in org.slf4j.helpers")default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [atTrace](../../src-html/org/slf4j/Logger.html#line-251)()
    Entry point for fluent-logging for [`Level.TRACE`](event/Level.html#TRACE) level.


Returns:
LoggingEventBuilder instance as appropriate for level TRACE

Since:
2.0

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-267)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message with the specific Marker at the TRACE level.


Parameters:
`marker` - the marker data specific to this log statement

`msg` - the message string to be logged

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-278)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    This method is similar to [`trace(String, Object)`](#trace(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg` - the argument

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-291)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    This method is similar to [`trace(String, Object, Object)`](#trace(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-303)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... argArray)
    This method is similar to [`trace(String, Object...)`](#trace(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`argArray` - an array of arguments

Since:
1.4

  - ### trace
    void [trace](../../src-html/org/slf4j/Logger.html#line-314)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    This method is similar to [`trace(String, Throwable)`](#trace(java.lang.String,java.lang.Throwable)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

Since:
1.4

  - ### isDebugEnabled
    boolean [isDebugEnabled](../../src-html/org/slf4j/Logger.html#line-322)()
    Is the logger instance enabled for the DEBUG level?


Returns:
True if this Logger is enabled for the DEBUG level,
 false otherwise.

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-329)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message at the DEBUG level.


Parameters:
`msg` - the message string to be logged

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-341)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    Log a message at the DEBUG level according to the specified format
 and argument. This form avoids superfluous object creation when the logger
 is disabled for the DEBUG level.

Parameters:
`format` - the format string

`arg` - the argument

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-354)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    Log a message at the DEBUG level according to the specified format
 and arguments. This form avoids superfluous object creation when the logger
 is disabled for the DEBUG level.

Parameters:
`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-370)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    Log a message at the DEBUG level according to the specified format
 and arguments. This form avoids superfluous string concatenation when the logger
 is disabled for the DEBUG level. However, this variant incurs the hidden
 (and relatively small) cost of creating an `Object[]` before invoking the method,
 even if this logger is disabled for DEBUG. The variants taking [`one`](#debug(java.lang.String,java.lang.Object)) and [`two`](#debug(java.lang.String,java.lang.Object,java.lang.Object)) arguments exist solely in order to avoid this hidden cost.

Parameters:
`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-379)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    Log an exception (throwable) at the DEBUG level with an
 accompanying message.


Parameters:
`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### isDebugEnabled
    boolean [isDebugEnabled](../../src-html/org/slf4j/Logger.html#line-389)([Marker](Marker.html "interface in org.slf4j") marker)
    Similar to [`isDebugEnabled()`](#isDebugEnabled()) method except that the
 marker data is also taken into account.


Parameters:
`marker` - The marker data to take into consideration

Returns:
True if this Logger is enabled for the DEBUG level,
 false otherwise.

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-397)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message with the specific Marker at the DEBUG level.


Parameters:
`marker` - the marker data specific to this log statement

`msg` - the message string to be logged

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-407)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    This method is similar to [`debug(String, Object)`](#debug(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg` - the argument

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-419)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    This method is similar to [`debug(String, Object, Object)`](#debug(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-430)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    This method is similar to [`debug(String, Object...)`](#debug(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### debug
    void [debug](../../src-html/org/slf4j/Logger.html#line-440)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    This method is similar to [`debug(String, Throwable)`](#debug(java.lang.String,java.lang.Throwable)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### atDebug
    [@CheckReturnValue](helpers/CheckReturnValue.html "annotation in org.slf4j.helpers")default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [atDebug](../../src-html/org/slf4j/Logger.html#line-448)()
    Entry point for fluent-logging for [`Level.DEBUG`](event/Level.html#DEBUG) level.


Returns:
LoggingEventBuilder instance as appropriate for level DEBUG

Since:
2.0

  - ### isInfoEnabled
    boolean [isInfoEnabled](../../src-html/org/slf4j/Logger.html#line-463)()
    Is the logger instance enabled for the INFO level?


Returns:
True if this Logger is enabled for the INFO level,
 false otherwise.

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-470)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message at the INFO level.


Parameters:
`msg` - the message string to be logged

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-482)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    Log a message at the INFO level according to the specified format
 and argument. This form avoids superfluous object creation when the logger
 is disabled for the INFO level.

Parameters:
`format` - the format string

`arg` - the argument

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-495)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    Log a message at the INFO level according to the specified format
 and arguments. This form avoids superfluous object creation when the logger
 is disabled for the INFO level.

Parameters:
`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-511)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    Log a message at the INFO level according to the specified format
 and arguments. This form avoids superfluous string concatenation when the logger
 is disabled for the INFO level. However, this variant incurs the hidden
 (and relatively small) cost of creating an `Object[]` before invoking the method,
 even if this logger is disabled for INFO. The variants taking [`one`](#info(java.lang.String,java.lang.Object)) and [`two`](#info(java.lang.String,java.lang.Object,java.lang.Object)) arguments exist solely in order to avoid this hidden cost.

Parameters:
`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-520)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    Log an exception (throwable) at the INFO level with an
 accompanying message.


Parameters:
`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### isInfoEnabled
    boolean [isInfoEnabled](../../src-html/org/slf4j/Logger.html#line-530)([Marker](Marker.html "interface in org.slf4j") marker)
    Similar to [`isInfoEnabled()`](#isInfoEnabled()) method except that the marker
 data is also taken into consideration.


Parameters:
`marker` - The marker data to take into consideration

Returns:
true if this Logger is enabled for the INFO level,
 false otherwise.

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-538)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message with the specific Marker at the INFO level.


Parameters:
`marker` - The marker specific to this log statement

`msg` - the message string to be logged

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-548)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    This method is similar to [`info(String, Object)`](#info(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg` - the argument

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-560)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    This method is similar to [`info(String, Object, Object)`](#info(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-571)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    This method is similar to [`info(String, Object...)`](#info(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### info
    void [info](../../src-html/org/slf4j/Logger.html#line-581)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    This method is similar to [`info(String, Throwable)`](#info(java.lang.String,java.lang.Throwable)) method
 except that the marker data is also taken into consideration.


Parameters:
`marker` - the marker data for this log statement

`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### atInfo
    [@CheckReturnValue](helpers/CheckReturnValue.html "annotation in org.slf4j.helpers")default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [atInfo](../../src-html/org/slf4j/Logger.html#line-589)()
    Entry point for fluent-logging for [`Level.INFO`](event/Level.html#INFO) level.


Returns:
LoggingEventBuilder instance as appropriate for level INFO

Since:
2.0

  - ### isWarnEnabled
    boolean [isWarnEnabled](../../src-html/org/slf4j/Logger.html#line-604)()
    Is the logger instance enabled for the WARN level?


Returns:
True if this Logger is enabled for the WARN level,
 false otherwise.

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-611)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message at the WARN level.


Parameters:
`msg` - the message string to be logged

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-623)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    Log a message at the WARN level according to the specified format
 and argument. This form avoids superfluous object creation when the logger
 is disabled for the WARN level.

Parameters:
`format` - the format string

`arg` - the argument

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-639)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    Log a message at the WARN level according to the specified format
 and arguments. This form avoids superfluous string concatenation when the logger
 is disabled for the WARN level. However, this variant incurs the hidden
 (and relatively small) cost of creating an `Object[]` before invoking the method,
 even if this logger is disabled for WARN. The variants taking [`one`](#warn(java.lang.String,java.lang.Object)) and [`two`](#warn(java.lang.String,java.lang.Object,java.lang.Object)) arguments exist solely in order to avoid this hidden cost.

Parameters:
`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-652)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    Log a message at the WARN level according to the specified format
 and arguments. This form avoids superfluous object creation when the logger
 is disabled for the WARN level.

Parameters:
`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-661)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    Log an exception (throwable) at the WARN level with an
 accompanying message.


Parameters:
`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### isWarnEnabled
    boolean [isWarnEnabled](../../src-html/org/slf4j/Logger.html#line-671)([Marker](Marker.html "interface in org.slf4j") marker)
    Similar to [`isWarnEnabled()`](#isWarnEnabled()) method except that the marker
 data is also taken into consideration.


Parameters:
`marker` - The marker data to take into consideration

Returns:
True if this Logger is enabled for the WARN level,
 false otherwise.

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-679)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message with the specific Marker at the WARN level.


Parameters:
`marker` - The marker specific to this log statement

`msg` - the message string to be logged

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-689)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    This method is similar to [`warn(String, Object)`](#warn(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg` - the argument

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-701)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    This method is similar to [`warn(String, Object, Object)`](#warn(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-712)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    This method is similar to [`warn(String, Object...)`](#warn(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### warn
    void [warn](../../src-html/org/slf4j/Logger.html#line-722)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    This method is similar to [`warn(String, Throwable)`](#warn(java.lang.String,java.lang.Throwable)) method
 except that the marker data is also taken into consideration.


Parameters:
`marker` - the marker data for this log statement

`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### atWarn
    [@CheckReturnValue](helpers/CheckReturnValue.html "annotation in org.slf4j.helpers")default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [atWarn](../../src-html/org/slf4j/Logger.html#line-730)()
    Entry point for fluent-logging for [`Level.WARN`](event/Level.html#WARN) level.


Returns:
LoggingEventBuilder instance as appropriate for level WARN

Since:
2.0

  - ### isErrorEnabled
    boolean [isErrorEnabled](../../src-html/org/slf4j/Logger.html#line-745)()
    Is the logger instance enabled for the ERROR level?


Returns:
True if this Logger is enabled for the ERROR level,
 false otherwise.

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-752)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message at the ERROR level.


Parameters:
`msg` - the message string to be logged

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-764)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    Log a message at the ERROR level according to the specified format
 and argument. This form avoids superfluous object creation when the logger
 is disabled for the ERROR level.

Parameters:
`format` - the format string

`arg` - the argument

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-777)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    Log a message at the ERROR level according to the specified format
 and arguments. This form avoids superfluous object creation when the logger
 is disabled for the ERROR level.

Parameters:
`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-793)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    Log a message at the ERROR level according to the specified format
 and arguments. This form avoids superfluous string concatenation when the logger
 is disabled for the ERROR level. However, this variant incurs the hidden
 (and relatively small) cost of creating an `Object[]` before invoking the method,
 even if this logger is disabled for ERROR. The variants taking [`one`](#error(java.lang.String,java.lang.Object)) and [`two`](#error(java.lang.String,java.lang.Object,java.lang.Object)) arguments exist solely in order to avoid this hidden cost.

Parameters:
`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-802)([String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    Log an exception (throwable) at the ERROR level with an
 accompanying message.


Parameters:
`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### isErrorEnabled
    boolean [isErrorEnabled](../../src-html/org/slf4j/Logger.html#line-812)([Marker](Marker.html "interface in org.slf4j") marker)
    Similar to [`isErrorEnabled()`](#isErrorEnabled()) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - The marker data to take into consideration

Returns:
True if this Logger is enabled for the ERROR level,
 false otherwise.

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-820)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg)
    Log a message with the specific Marker at the ERROR level.


Parameters:
`marker` - The marker specific to this log statement

`msg` - the message string to be logged

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-830)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg)
    This method is similar to [`error(String, Object)`](#error(java.lang.String,java.lang.Object)) method except that the
 marker data is also taken into consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg` - the argument

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-842)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg1, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang") arg2)
    This method is similar to [`error(String, Object, Object)`](#error(java.lang.String,java.lang.Object,java.lang.Object)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arg1` - the first argument

`arg2` - the second argument

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-853)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") format, [Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html "class or interface in java.lang")... arguments)
    This method is similar to [`error(String, Object...)`](#error(java.lang.String,java.lang.Object...)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`format` - the format string

`arguments` - a list of 3 or more arguments

  - ### error
    void [error](../../src-html/org/slf4j/Logger.html#line-864)([Marker](Marker.html "interface in org.slf4j") marker, [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html "class or interface in java.lang") msg, [Throwable](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html "class or interface in java.lang") t)
    This method is similar to [`error(String, Throwable)`](#error(java.lang.String,java.lang.Throwable)) method except that the marker data is also taken into
 consideration.


Parameters:
`marker` - the marker data specific to this log statement

`msg` - the message accompanying the exception

`t` - the exception (throwable) to log

  - ### atError
    [@CheckReturnValue](helpers/CheckReturnValue.html "annotation in org.slf4j.helpers")default [LoggingEventBuilder](spi/LoggingEventBuilder.html "interface in org.slf4j.spi") [atError](../../src-html/org/slf4j/Logger.html#line-872)()
    Entry point for fluent-logging for [`Level.ERROR`](event/Level.html#ERROR) level.


Returns:
LoggingEventBuilder instance as appropriate for level ERROR

Since:
2.0

---


Copyright © 2005-2025 QOS.CH Sarl. All rights reserved
