001 package log;
002
003 import java.io.*;
004
005 /**
006 * Any object that provides access to some log file through a {@link #log} method.
007 *
008 * @author Steffen Zschaler
009 * @version 2.0 14/07/1999
010 * @since v2.0
011 */
012 public interface LogContext {
013
014 /**
015 * Logs the given data to a log file.
016 *
017 * @param l the event to be logged.
018 *
019 * @exception LogNoOutputStreamException if no OutputStream has been
020 * specified for the log file.
021 * @exception IOException if an IOException occurs when writing to the
022 * log file.
023 *
024 * @override Always
025 */
026 public void log(Loggable l) throws LogNoOutputStreamException, IOException;
027
028 }