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 TargetToken implements FormatterToken {
11:
12: public String format(LogRecord lr) {
13: return lr.getTarget().getName().toUpperCase();
14: }
15:
16: public String getName() {
17: return "target";
18: }
19:
20: public void setParameterString(String txt) {
21: }
22: }
|