KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jzonic.jlo.formatter;
2
3 import org.jzonic.jlo.LogRecord;
4
5 import java.util.Map JavaDoc;
6 /**
7  *@author Andreas Mecky
8  *@author Terry Dye
9  *@created 9. März 2002
10  *@version 1.0
11  */

12 public class XMLFormatter extends AbstractFormatter {
13     /**
14      * Constructor for the XMLFormatter object
15      */

16     public XMLFormatter(String JavaDoc configName) {
17         super(configName);
18     }
19
20
21     /**
22      *@param lr
23      *@return
24      */

25     public String JavaDoc formatMessage(LogRecord lr) {
26         return "<log>" + lr.getMessage() + "</log>";
27     }
28
29     public void setParameter(Map JavaDoc params) {
30         // we do not need any
31
}
32 }
33
Popular Tags