Skip to content

Commit 999a5d5

Browse files
author
Robin Duda
committed
deprecate and remove logging.Level.Startup as a supported logging Level
makes the logs look much better, startup/shutdown events should be signaled through the logging event name instead.
1 parent a900d64 commit 999a5d5

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

core/main/java/com/codingchili/core/Launcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Launcher implements CoreService {
3636
public Launcher(LaunchContext context) {
3737
Future<CommandResult> future = Future.future();
3838

39-
logger.log(CoreStrings.getStartupText(), Level.STARTUP);
39+
logger.log(CoreStrings.getStartupText());
4040

4141
context.getExecutor().execute(future, context.args());
4242
future.setHandler(done -> {

core/main/java/com/codingchili/core/logging/DefaultLogger.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,25 @@ public void onAlreadyInitialized() {
9191

9292
@Override
9393
public void onServiceStarted(CoreService service) {
94-
event(LOG_SERVICE_START, Level.STARTUP)
94+
event(LOG_SERVICE_START)
9595
.put(ID_NAME, service.name()).send();
9696
}
9797

9898
@Override
9999
public void onServiceStopped(CoreService service) {
100-
event(LOG_SERVICE_STOP, Level.WARNING)
100+
event(LOG_SERVICE_STOP)
101101
.put(ID_NAME, service.name()).send();
102102
}
103103

104104
@Override
105105
public void onListenerStarted(CoreListener listener) {
106-
event(LOG_LISTENER_START, Level.STARTUP)
106+
event(LOG_LISTENER_START)
107107
.put(ID_HANDLER, listener.toString()).send();
108108
}
109109

110110
@Override
111111
public void onListenerStopped(CoreListener listener) {
112-
event(LOG_LISTENER_STOP, Level.WARNING)
112+
event(LOG_LISTENER_STOP)
113113
.put(ID_HANDLER, listener.toString()).send();
114114
}
115115

core/main/java/com/codingchili/core/logging/Level.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public enum Level implements LogLevel {
99
INFO(Ansi.Color.CYAN),
1010
WARNING(Ansi.Color.YELLOW),
11-
STARTUP(Ansi.Color.GREEN),
1211
ERROR(Ansi.Color.RED),
1312
SPECIAL(Ansi.Color.MAGENTA),
1413
RESERVED(Ansi.Color.BLUE),

0 commit comments

Comments
 (0)