diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadAssetCommand.java b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadAssetCommand.java index 91c0aac7..3999cc1b 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadAssetCommand.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadAssetCommand.java @@ -19,7 +19,7 @@ public DownloadAssetCommand(LaunchServer server) { @Override public String getArgsDescription() { - return " "; + return "[version] [dir]"; } @Override diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadClientCommand.java b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadClientCommand.java index bb6682f3..c2d361b5 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadClientCommand.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/DownloadClientCommand.java @@ -24,7 +24,7 @@ public DownloadClientCommand(LaunchServer server) { @Override public String getArgsDescription() { - return " "; + return "[version] [dir]"; } @Override diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/IndexAssetCommand.java b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/IndexAssetCommand.java index 0d220e84..5a36fcfd 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/IndexAssetCommand.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/IndexAssetCommand.java @@ -81,7 +81,7 @@ public IndexAssetCommand(LaunchServer server) { @Override public String getArgsDescription() { - return " "; + return "[dir] [index] [output-dir]"; } @Override diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/UnindexAssetCommand.java b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/UnindexAssetCommand.java index b74f7c9d..a755c011 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/UnindexAssetCommand.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/command/hash/UnindexAssetCommand.java @@ -24,7 +24,7 @@ public UnindexAssetCommand(LaunchServer server) { @Override public String getArgsDescription() { - return " "; + return "[dir] [index] [output-dir]"; } @Override diff --git a/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java b/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java index 01baaeb3..837b8af8 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java +++ b/libLauncher/src/main/java/ru/gravit/utils/helper/LogHelper.java @@ -403,16 +403,23 @@ public static String htmlFormatLog(Level level, String dateTime, String message, String levelColor; switch (level) { case WARNING: - levelColor = "yellow"; + levelColor = "gravitlauncher-log-warning"; break; case ERROR: - levelColor = "red"; + levelColor = "gravitlauncher-log-error"; break; - default: // INFO, DEBUG, Unknown - levelColor = "white"; + case INFO: + levelColor = "gravitlauncher-log-info"; + break; + case DEBUG: + levelColor = "gravitlauncher-log-debug"; + break; + default: + levelColor = "gravitlauncher-log-unknown"; break; } - return String.format("%s [%s] %s", dateTime, levelColor, level.toString(), sub ? ' ' + message : message); + if(sub) levelColor += " gravitlauncher-log-sub"; + return String.format("%s [%s] %s", dateTime, levelColor, level.toString(), sub ? ' ' + message : message); } private static String ansiFormatVersion(String product) {