01: package org.jzonic.jlo.formatter;
02:
03: import org.jzonic.jlo.LogRecord;
04:
05: import java.util.Map;
06:
07: /**
08: *@author Andreas Mecky
09: *@author Terry Dye
10: *@created 9. März 2002
11: *@version 1.0
12: */
13: public class XMLFormatter extends AbstractFormatter {
14: /**
15: * Constructor for the XMLFormatter object
16: */
17: public XMLFormatter(String configName) {
18: super (configName);
19: }
20:
21: /**
22: *@param lr
23: *@return
24: */
25: public String formatMessage(LogRecord lr) {
26: return "<log>" + lr.getMessage() + "</log>";
27: }
28:
29: public void setParameter(Map params) {
30: // we do not need any
31: }
32: }
|