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 7 * modify it under the terms of the GNU Lesser General Public License as 8 * published by the Free Software Foundation. 9 */ 10 package ch.qos.logback.classic.spi; 11 12 import ch.qos.logback.classic.LoggerContext; 13 import ch.qos.logback.core.spi.ContextAware; 14 15 16 public interface LoggerContextAware extends ContextAware { 17 18 19 /** 20 * Set owning logger context for this component. This operation can 21 * only be performed once. Once set, the owning context cannot be changed. 22 * 23 * @param context The context where this component is attached. 24 * @throws IllegalStateException If you try to change the context after it 25 * has been set. 26 **/ 27 public void setLoggerContext(LoggerContext context); 28 29 }