1 /** 2 * Logback: the reliable, generic, fast and flexible logging framework. 3 * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 * 5 * This program and the accompanying materials are dual-licensed under 6 * either the terms of the Eclipse Public License v1.0 as published by 7 * the Eclipse Foundation 8 * 9 * or (per the licensee's choosing) 10 * 11 * under the terms of the GNU Lesser General Public License version 2.1 12 * as published by the Free Software Foundation. 13 */ 14 package ch.qos.logback.classic.net.server; 15 16 import ch.qos.logback.classic.LoggerContext; 17 import ch.qos.logback.core.net.server.Client; 18 import ch.qos.logback.core.net.server.ServerRunner; 19 20 /** 21 * A client of a {@link ServerRunner} that receives events from a remote 22 * appender. 23 * 24 * @author Carl Harris 25 */ 26 interface RemoteAppenderClient extends Client { 27 28 /** 29 * Sets the client's logger context. 30 * <p> 31 * This provides the local logging context to the client's service thread, and 32 * is used as the destination for logging events received from the client. 33 * <p> 34 * This method <em>must</em> be invoked before the {@link #run()} method. 35 * 36 * @param lc the logger context to set 37 */ 38 void setLoggerContext(LoggerContext lc); 39 40 }