1.9 KiB
1.9 KiB
SLF4Bukkit
SLF4J binding that uses Bukkit's plugin logging system.
Server Owners
If you were linked here by documentation for a plugin that you're using on your Bukkit/Spigot server, go here to learn what configuration options you have available (and please ask the plugin developer to fix their links!).
Plugin Developers
If you wish to use SLF4J in your Bukkit plugin, or if your plugin has a dependency on a library that uses SLF4J:
- Shade SLF4Bukkit into your plugin project:
<dependency>
<groupId>info.ronjenkins</groupId>
<artifactId>slf4bukkit</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
- (Optional) Add your desired default configuration values to your plugin's built-in config.yml file.
- (Optional) Use the SLF4J API in your code. Note that SLF4Bukkit does not support markers.
For more details, see the Javadocs for the BukkitPluginLoggerAdapter class.