/**
 * Logback: the reliable, fast and flexible logging library for Java.
 * 
 * Copyright (C) 1999-2006, QOS.ch
 * 
 * This library is free software, you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation.
 */

package ch.qos.logback.classic.util;

import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.status.StatusManager;
import ch.qos.logback.core.util.StatusPrinter;

public class LoggerStatusPrinter {

  public static void printStatusInDefaultContext() {
    Logger logger = (Logger) LoggerFactory.getLogger(LoggerStatusPrinter.class);
    LoggerContext lc = logger.getLoggerContext();
    StatusManager sm = lc.getStatusManager();
    StatusPrinter.print(sm);
  }

}
