java.lang.Object
com.djaytan.bukkit.slf4j.api.BukkitLoggerFactory
- All Implemented Interfaces:
org.slf4j.ILoggerFactory
This class is responsible for creating SLF4J loggers based on a provided JUL one. This is a
specific scenario that we need to rely on when creating Bukkit plugins. That's due to the logging
design being based on a single instance shared across the whole plugin (mainly for appending the
plugin name while not displaying technical information such as the class full name).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.Loggerstatic voidprovideBukkitLogger(Logger jdk14Logger) Provides the Bukkit logger to be returned by any subsequent call toLoggerFactory.getLogger(String).
-
Constructor Details
-
BukkitLoggerFactory
@Internal public BukkitLoggerFactory()
-
-
Method Details
-
provideBukkitLogger
Provides the Bukkit logger to be returned by any subsequent call toLoggerFactory.getLogger(String).- Parameters:
jdk14Logger- The single JUL logger instance to be used each time theLoggerFactory.getLogger(String)method is called.
-
getLogger
- Specified by:
getLoggerin interfaceorg.slf4j.ILoggerFactory
-