01: package org.jzonic.jlo.formatter.tokens;
02:
03: import org.jzonic.jlo.LogRecord;
04:
05: /**
06: * User: Mecky
07: * Date: 19.07.2005
08: * Time: 12:17:49
09: */
10: public class TimeTrackerToken implements FormatterToken {
11:
12: public String format(LogRecord lr) {
13: return String.valueOf(lr.getElapsed()) + "ms";
14: }
15:
16: public String getName() {
17: return "elapsed";
18: }
19:
20: public void setParameterString(String txt) {
21: }
22: }
|