Package com.thebuzzmedia.exiftool.logs
Class LoggerFactory
java.lang.Object
com.thebuzzmedia.exiftool.logs.LoggerFactory
Factory to use to create
Appropriate implementation will be used depending on classpath. Verification is done in the following order:
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 (seeServiceLoader
). - 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 Summary
-
Method Details
-
getLogger
Return a logger named corresponding to the class passed as parameter,- Parameters:
klass
- the returned logger will be named after clazz.- Returns:
- Logger implementation.
-