public static void debugging() { setLogLevel(LEVEL_DEBUG); }
public static synchronized void args(String... args) { for (String arg : args) { for (LogLevel level : LogLevel.values()) { if (arg.equalsIgnoreCase(level.name())) { setLogLevel(level); } } } }
public static synchronized void reset() { setLogLevel(GlobalCfg.quiet() ? LogLevel.ERROR : LogLevel.INFO); LogStats.reset(); }
private static void activateRootConfig() { U.must(Env.isInitialized()); String root = Env.root(); if (U.notEmpty(root) && !APP.has("jar")) { APP.set("jar", Msc.path(root, "app.jar")); } String appJar = APP.entry("jar").str().getOrNull(); if (U.notEmpty(appJar)) { ClasspathUtil.appJar(appJar); } boolean fancyByDefault = Env.dev() || System.console() != null; Log.options().fancy(LOG.entry("fancy").bool().or(fancyByDefault)); LogLevel logLevel = LOG.entry("level").to(LogLevel.class).getOrNull(); if (logLevel != null && !Env.test()) { Log.setLogLevel(logLevel); } if (GlobalCfg.quiet()) { Log.setLogLevel(LogLevel.ERROR); // overwrite the configured log level in quiet mode } }
public static void debugging() { setLogLevel(LEVEL_DEBUG); }
public static void debugging() { setLogLevel(LEVEL_DEBUG); }
public static synchronized void args(String... args) { for (String arg : args) { for (LogLevel level : LogLevel.values()) { if (arg.equalsIgnoreCase(level.name())) { setLogLevel(level); } } } }
public static synchronized void args(String... args) { for (String arg : args) { for (LogLevel level : LogLevel.values()) { if (arg.equalsIgnoreCase(level.name())) { setLogLevel(level); } } } }
public static synchronized void reset() { setLogLevel(GlobalCfg.quiet() ? LogLevel.ERROR : LogLevel.INFO); LogStats.reset(); }