1 /** 2 * Logback: the reliable, fast and flexible logging library for Java. 3 * 4 * Copyright (C) 1999-2006, QOS.ch 5 * 6 * This library is free software, you can redistribute it and/or modify it under 7 * the terms of the GNU Lesser General Public License as published by the Free 8 * Software Foundation. 9 */ 10 11 package ch.qos.logback.classic.util; 12 13 import org.slf4j.LoggerFactory; 14 15 import ch.qos.logback.classic.LoggerContext; 16 import ch.qos.logback.core.util.StatusPrinter; 17 18 public class LoggerStatusPrinter { 19 20 public static void printStatusInDefaultContext() { 21 LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); 22 StatusPrinter.print(lc); 23 } 24 25 }