Package ch.qos.logback.classic

Examples of ch.qos.logback.classic.Level.toInt()


      ILoggingEvent event = (ILoggingEvent) e;

      // Note that we can get the unformatted message in getMessage(), presumably along with the parameters...
      String message = event.getFormattedMessage();
      Level level = event.getLevel();
      int levelInt = level.toInt();

      List<String[]> exceptionStacks = null;

      IThrowableProxy throwableInformation = event.getThrowableProxy();
      while (throwableInformation != null) {
View Full Code Here


            // Note that we can get the unformatted message in getMessage(),
            // presumably along with the parameters...
            String loggerName = event.getLoggerName();
            String message = event.getFormattedMessage();
            Level level = event.getLevel();
            int levelInt = level.toInt();

            List<String[]> exceptionStacks = null;

            IThrowableProxy throwableInformation = event.getThrowableProxy();
            while (throwableInformation != null) {
View Full Code Here

public class HighlightingCompositeConverter extends ForegroundCompositeConverterBase<ILoggingEvent> {

  @Override
  protected String getForegroundColorCode(ILoggingEvent event) {
    Level level = event.getLevel();
    switch (level.toInt()) {
      case Level.ERROR_INT: return BOLD+RED_FG;
      case Level.WARN_INT: return RED_FG;
      case Level.INFO_INT: return BLUE_FG;
      default: return DEFAULT_FG;
    }
View Full Code Here

public class HighlightingCompositeConverter extends ForegroundCompositeConverterBase<ILoggingEvent> {

  @Override
  protected String getForegroundColorCode(ILoggingEvent event) {
    Level level = event.getLevel();
    switch (level.toInt()) {
      case Level.ERROR_INT: return BOLD+RED_FG;
      case Level.WARN_INT: return RED_FG;
      case Level.INFO_INT: return BLUE_FG;
      default: return DEFAULT_FG;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.