This repository has been archived on 2022-04-04 . You can view files and clone it, but cannot push or open issues or pull requests.
171eea5137b33a75c19cfdecdf22836cf5b07886
SLF4Bukkit
SLF4Bukkit is an SLF4J binding that uses Bukkit's plugin logging system.
Server Administrators
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:
- Reference the rjenkinsjr Maven2 Repository in your POM.
- Shade SLF4Bukkit into your plugin project:
<dependency>
<groupId>info.ronjenkins</groupId>
<artifactId>slf4bukkit</artifactId>
<version>0.1.2</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.
- SLF4Bukkit supports only Bukkit formatting markers, which format the entire message and associated throwable (if any). All other markers are discarded.
- In addition to using the Bukkit formatting markers, you can use Bukkit's
ChatColorvalues to further format your message. - SLF4Bukkit issues
ChatColor.RESETafter every log message, so you don't have to worry about resetting after each message.
Description
Languages
Java
99.3%
Shell
0.7%