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.format;
09:
10: import org.jivesoftware.util.log.LogEvent;
11:
12: /**
13: * This defines the interface for components that wish to serialize
14: * LogEvents into Strings.
15: *
16: * @author <a href="mailto:peter@apache.org">Peter Donald</a>
17: */
18: public interface Formatter {
19: /**
20: * Serialize log event into string.
21: *
22: * @param event the event
23: * @return the formatted string
24: */
25: String format(LogEvent event);
26: }
|