Ignore:
Timestamp:
11/01/13 14:39:10 (11 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/TextConsole.java

    r927 r1318  
    1717import java.io.IOException; 
    1818import java.nio.charset.Charset; 
     19import java.text.SimpleDateFormat; 
     20import java.util.Date; 
    1921import java.util.logging.Level; 
    2022 
     
    4042         */ 
    4143        private Level traceLevel; 
     44         
     45        private final SimpleDateFormat ft = new SimpleDateFormat("HH:mm:ss"); 
    4246         
    4347        /** 
     
    108112        public void traceMsg(String traceMessage, Level level) { 
    109113                if (level.intValue()>=traceLevel.intValue()) { 
    110                         System.out.print("[" + level.toString() + "] " + traceMessage); 
     114                        System.out.print("[" + level.toString() + "] [" + ft.format(new Date()) + "] " + traceMessage); 
    111115                } 
    112116        } 
Note: See TracChangeset for help on using the changeset viewer.