1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE file. 7 */ 8 package org.jivesoftware.util.log; 9 10 /** 11 * LogTarget is a class to encapsulate outputting LogEvent's. 12 * This provides the base for all output and filter targets. 13 * <p/> 14 * Warning: If performance becomes a problem then this 15 * interface will be rewritten as a abstract class. 16 * 17 * @author <a HREF="mailto:peter@apache.org">Peter Donald</a> 18 */ 19 public interface LogTarget { 20 /** 21 * Process a log event. 22 * In NO case should this method ever throw an exception/error. 23 * The reason is that logging is usually added for debugging/auditing 24 * purposes and it would be unnaceptable to have your debugging 25 * code cause more errors. 26 * 27 * @param event the event 28 */ 29 void processEvent(LogEvent event); 30 } 31