Class LegacyColorsLogger
java.lang.Object
com.kamikazejam.kamicommon.util.log.LoggerService
com.kamikazejam.kamicommon.util.log.LegacyColorsLogger
Simple colored logger that automatically parse legacy color codes using the section symbol (§) or ampersand (&).
This logger is designed for use in Bukkit/Spigot/Paper plugins, and will prepend the plugin name to each message.
It supports different log levels, and will colorize the output accordingly:
- DEBUG (Level.FINE): Gray
- INFO (Level.INFO): No colorization
- WARNING (Level.WARNING): Yellow
- SEVERE (Level.SEVERE): Red
Note: The logger does not currently support other log levels.
This logger is designed for use in Bukkit/Spigot/Paper plugins, and will prepend the plugin name to each message.
It supports different log levels, and will colorize the output accordingly:
- DEBUG (Level.FINE): Gray
- INFO (Level.INFO): No colorization
- WARNING (Level.WARNING): Yellow
- SEVERE (Level.SEVERE): Red
Note: The logger does not currently support other log levels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDebug()final voidlogToConsole(String message, Level level)
-
Constructor Details
-
LegacyColorsLogger
-
-
Method Details
-
getLoggerName
- Specified by:
getLoggerNamein classLoggerService
-
isDebug
public boolean isDebug()- Specified by:
isDebugin classLoggerService
-
logToConsole
- Overrides:
logToConsolein classLoggerService
-