Ignore:
Timestamp:
08/27/12 15:53:25 (12 years ago)
Author:
sherbold
Message:
  • all usages of the Console tracing API now define log levels
Location:
trunk/java-utils/src/main/java/de/ugoe/cs/util/console
Files:
2 edited

Legend:

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

    r320 r639  
    44import java.util.ArrayList; 
    55import java.util.List; 
     6import java.util.logging.Level; 
    67 
    78/** 
     
    161162                } catch (InstantiationException e) { 
    162163                } catch (ClassCastException e) { 
    163                         Console.traceln(className + "found, but does not implement Command"); 
     164                        Console.traceln(Level.WARNING, className + "found, but does not implement Command"); 
    164165                } 
    165166                return cmd; 
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexec.java

    r322 r639  
    88import java.security.InvalidParameterException; 
    99import java.util.List; 
     10import java.util.logging.Level; 
    1011 
    1112import de.ugoe.cs.util.console.Command; 
     
    4546                        commands = (new String(buffer)).split("\n"); 
    4647                        for (String command : commands) { 
    47                                 Console.traceln(command.trim()); 
     48                                Console.traceln(Level.INFO, "Executing \"" + command.trim() + "\""); 
    4849                                CommandExecuter.getInstance().exec(command); 
    4950                        } 
Note: See TracChangeset for help on using the changeset viewer.