diff --git a/src/main/java/com/github/games647/colorconsole/ColorConsole.java b/src/main/java/com/github/games647/colorconsole/ColorConsole.java index bc0b4c5..6d474fb 100644 --- a/src/main/java/com/github/games647/colorconsole/ColorConsole.java +++ b/src/main/java/com/github/games647/colorconsole/ColorConsole.java @@ -62,7 +62,12 @@ public class ColorConsole extends JavaPlugin { String logFormat = getConfig().getString("logFormat"); if (getConfig().getBoolean("colorLoggingLevel")) { logFormat = "%highlight{" + logFormat + "}{" - + "FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=gray, DEBUG=green bold, TRACE=blue}"; + + "FATAL=" + getConfig().getString("FATAL") + ", " + + "ERROR=" + getConfig().getString("ERROR") + ", " + + "WARN=" + getConfig().getString("WARN") + ", " + + "INFO=" + getConfig().getString("INFO") + ", " + + "DEBUG=" + getConfig().getString("DEBUG") + ", " + + "TRACE=" + getConfig().getString("TRACE") + "}"; } PatternLayout layout = PatternLayout diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a502067..84d78ef 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -21,3 +21,11 @@ colorLoggingLevel: true # For more details vist: https://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns logFormat: '[%d{HH:mm:ss} %level]: %msg%n' +# Log Level Colors +FATAL: red blink +ERROR: red +WARN: yellow bold +INFO: gray +DEBUG: green bold +TRACE: blue +