Fork me on GitHub

SLF4Bukkit for 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.1</version>
</dependency>
  • (Optional) Add your desired default configuration values to your plugin’s built-in config.yml file. For more details, see the Javadocs for the BukkitPluginLoggerAdapter class.
  • (Optional) Use the SLF4J API in your code. Note that SLF4Bukkit does not support markers.