Class LoggerFactory

java.lang.Object
com.thebuzzmedia.exiftool.logs.LoggerFactory

public final class LoggerFactory extends Object
Factory to use to create Logger instances.
Appropriate implementation will be used depending on classpath. Verification is done in the following order:
  • Check from LoggerProvider registered using Java Service Provider Interface (see ServiceLoader).
  • If slf4j is defined, then it will be used.
  • If slf4j is defined, then it will be used.
  • If log4j is defined, it will be used.
  • Finally, instance of DefaultLogger is used.
  • Method Details

    • getLogger

      public static Logger getLogger(Class<?> klass)
      Return a logger named corresponding to the class passed as parameter,
      Parameters:
      klass - the returned logger will be named after clazz.
      Returns:
      Logger implementation.