KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > formatter > tokens > TextToken


1 package org.jzonic.jlo.formatter.tokens;
2
3 import org.jzonic.jlo.LogRecord;
4
5 /**
6  * Created by IntelliJ IDEA.
7  * User: Mecky
8  * Date: 19.07.2005
9  * Time: 12:17:49
10  * To change this template use File | Settings | File Templates.
11  */

12 public class TextToken implements FormatterToken {
13
14     public String JavaDoc format(LogRecord lr) {
15         return lr.getMessage();
16     }
17
18     public String JavaDoc getName() {
19         return "text";
20     }
21
22     public void setParameterString(String JavaDoc txt) {
23         //To change body of implemented methods use File | Settings | File Templates.
24
}
25 }
26
Popular Tags