01: package org.jzonic.jlo.formatter;
02:
03: import org.jzonic.jlo.LogRecord;
04:
05: import java.util.Map;
06:
07: /**
08: * This interface defines the methods that every formatter
09: * has to implement.
10: *
11: *@author Andreas Mecky
12: *@author Terry Dye
13: */
14: public interface Formatter {
15:
16: /**
17: * This method gets a <code>LogRecord</code> wihich contains
18: * all informations about the logging-request and converts
19: * it to a <code>String</code>.
20: *
21: * @param lr The LogRecord
22: *
23: * @return A String with the formatted message
24: */
25: public String formatMessage(LogRecord lr);
26:
27: public void setParameter(Map params);
28: }
|