KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > util > log > format > Formatter


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.format;
9
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 JavaDoc format(LogEvent event);
26 }
27
Popular Tags