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

org.fissore.slf4j.NOOPLogger Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package org.fissore.slf4j;

import java.util.function.Supplier;

/**
 * A no-op logger is a logger that does nothing. {@link FluentLogger} has one statically initialized instance of this class, and will return it whenever the desired logging level is not enabled.
 */
public class NOOPLogger extends LoggerAtLevel {

  public NOOPLogger() {
    super(null, null, false, null, -1);
  }

  @Override
  public LoggerAtLevel withCause(Throwable cause) {
    return this;
  }

  @Override
  public void log(String message) {
  }

  @Override
  public void log(String format, Object arg) {
  }

  @Override
  public void log(String format, Object arg1, Object arg2) {
  }

  @Override
  public void log(String format, Object arg1, Object arg2, Object arg3) {
  }

  @Override
  public void log(String format, Object arg1, Object arg2, Object arg3, Object arg4) {
  }

  @Override
  public void log(String format, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) {
  }

  @Override
  public void log(String format, Object... args) {
  }

  @Override
  public void log(Supplier message) {
  }

  @Override
  public void log(Supplier formatSupplier, Object arg) {
  }

  @Override
  public void log(Supplier formatSupplier, Object arg1, Object arg2) {
  }

  @Override
  public void log(Supplier formatSupplier, Object arg1, Object arg2, Object arg3) {
  }

  @Override
  public void log(Supplier formatSupplier, Object arg1, Object arg2, Object arg3, Object arg4) {
  }

  @Override
  public void log(Supplier formatSupplier, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) {
  }

  @Override
  public void log(Supplier formatSupplier, Object... args) {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy