X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FConsole.java;fp=src%2Fjalview%2Fbin%2FConsole.java;h=30fd530ba04b91c2c33c61466629ed53e91d4aaf;hb=cfd38a33612b73a5b050c9f19d0fb0d81a7b646a;hp=4b18484de686575c3b5f331ac4017ab3b2857eb8;hpb=de9592c0781569ccefd4c115bb36524d6c9deaab;p=jalview.git diff --git a/src/jalview/bin/Console.java b/src/jalview/bin/Console.java index 4b18484..30fd530 100644 --- a/src/jalview/bin/Console.java +++ b/src/jalview/bin/Console.java @@ -220,6 +220,11 @@ public class Console return JLogger.toLevel(level); } + public static JLogger getLogger() + { + return log; + } + public static boolean initLogger() { return initLogger(null); @@ -236,9 +241,13 @@ public class Console JLogger.LogLevel logLevel = JLogger.LogLevel.INFO; if (JLogger.isLevel(providedLogLevel)) + { logLevel = Console.getLogLevel(providedLogLevel); + } else + { logLevel = getCachedLogLevel(); + } if (!Platform.isJS()) {