- Timestamp:
- 11/01/13 14:39:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/TextConsole.java
r927 r1318 17 17 import java.io.IOException; 18 18 import java.nio.charset.Charset; 19 import java.text.SimpleDateFormat; 20 import java.util.Date; 19 21 import java.util.logging.Level; 20 22 … … 40 42 */ 41 43 private Level traceLevel; 44 45 private final SimpleDateFormat ft = new SimpleDateFormat("HH:mm:ss"); 42 46 43 47 /** … … 108 112 public void traceMsg(String traceMessage, Level level) { 109 113 if (level.intValue()>=traceLevel.intValue()) { 110 System.out.print("[" + level.toString() + "] " + traceMessage);114 System.out.print("[" + level.toString() + "] [" + ft.format(new Date()) + "] " + traceMessage); 111 115 } 112 116 }
Note: See TracChangeset
for help on using the changeset viewer.