KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > formatter > Formatter


1 package org.jzonic.jlo.formatter;
2
3 import org.jzonic.jlo.LogRecord;
4
5 import java.util.Map JavaDoc;
6 /**
7  * This interface defines the methods that every formatter
8  * has to implement.
9  *
10  *@author Andreas Mecky
11  *@author Terry Dye
12  */

13 public interface Formatter {
14
15     /**
16      * This method gets a <code>LogRecord</code> wihich contains
17      * all informations about the logging-request and converts
18      * it to a <code>String</code>.
19      *
20      * @param lr The LogRecord
21      *
22      * @return A String with the formatted message
23      */

24     public String JavaDoc formatMessage(LogRecord lr);
25
26     public void setParameter(Map JavaDoc params);
27 }
28
Popular Tags