@Test public void verboseEnabled() { String[] data = { "build", "Test", "api", null, "bla", "log: Unknown verbosity group bla. Ignoring...", "all", "Test", "", "Test", "true", "Test", "false", null }; for (int i = 0; i < data.length; i += 2) { TestLog testLog = new TestLog(); AnsiLogger logger = new AnsiLogger(testLog, false, data[i], false, ""); logger.verbose( KitLogger.LogVerboseCategory.BUILD, "Test"); assertEquals(data[i+1], testLog.getMessage()); } }
public void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params) { if (isVerbose && verboseModes != null && verboseModes.contains(logVerboseCategory)) { log.info(ansi().fgBright(BLACK).a(prefix).a(format(message, params)).reset().toString()); } }
AnsiLogger implements KitLogger { public void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params) { if (isVerbose && verboseModes != null && verboseModes.contains(logVerboseCategory)) { log.info(ansi().fgBright(BLACK).a(prefix).a(format(message, params)).reset().toString()); } } }
AnsiLogger implements KitLogger { public void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params) { if (isVerbose && verboseModes != null && verboseModes.contains(logVerboseCategory)) { log.info(ansi().fgBright(BLACK).a(prefix).a(format(message, params)).reset().toString()); } } AnsiLogger(Log log, boolean useColor, String verbose);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode, String prefix); }
AnsiLogger implements KitLogger { public void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params) { if (isVerbose && verboseModes != null && verboseModes.contains(logVerboseCategory)) { log.info(ansi().fgBright(BLACK).a(prefix).a(format(message, params)).reset().toString()); } } AnsiLogger(Log log, boolean useColor, String verbose);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode, String prefix); void debug(String message, Object ... params); void info(String message, Object ... params); void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params); void warn(String format, Object ... params); void error(String message, Object ... params); boolean isDebugEnabled(); boolean isVerboseEnabled(); void progressStart(); void progressUpdate(String layerId, String status, String progressMessage); void progressFinished(); }
AnsiLogger implements KitLogger { public void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params) { if (isVerbose && verboseModes != null && verboseModes.contains(logVerboseCategory)) { log.info(ansi().fgBright(BLACK).a(prefix).a(format(message, params)).reset().toString()); } } AnsiLogger(Log log, boolean useColor, String verbose);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode, String prefix); void debug(String message, Object ... params); void info(String message, Object ... params); void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params); void warn(String format, Object ... params); void error(String message, Object ... params); boolean isDebugEnabled(); boolean isVerboseEnabled(); void progressStart(); void progressUpdate(String layerId, String status, String progressMessage); void progressFinished(); static final String DEFAULT_LOG_PREFIX; }