v1.3.1 : Optimizing logging levels

This commit is contained in:
Klemek
2018-10-19 00:20:49 +02:00
parent b3f14b545e
commit 9eed83cc0f
5 changed files with 6 additions and 4 deletions
@@ -169,6 +169,8 @@ public final class Logger {
initialized = true;
Logger.log(Level.WARNING, "Logger was not initialized please do so before using.");
}
if (lvl.intValue() < appLogger.getLevel().intValue())
return;
message = String.format("[%s-%s] %s", appName, Utils.getCallingClassName(depth), message);
appLogger.log(lvl, message, objects);
if (objects.length > 0 && objects[0] instanceof Throwable) {