01: /*
02: * Copyright (C) The Apache Software Foundation. All rights reserved.
03: *
04: * This software is published under the terms of the Apache Software License
05: * version 1.1, a copy of which has been included with this distribution in
06: * the LICENSE file.
07: */
08: package org.jivesoftware.util.log;
09:
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: }
|