KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jzonic.jlo.formatter.tokens;
2
3 import org.jzonic.jlo.LogRecord;
4
5 /**
6  * User: Mecky
7  * Date: 19.07.2005
8  * Time: 12:17:49
9  */

10 public class TimeTrackerToken implements FormatterToken {
11
12     public String JavaDoc format(LogRecord lr) {
13         return String.valueOf(lr.getElapsed())+"ms";
14     }
15
16     public String JavaDoc getName() {
17         return "elapsed";
18     }
19
20     public void setParameterString(String JavaDoc txt) {
21     }
22 }
23
Popular Tags