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/quest-ui-core/src/main/java/de/ugoe/cs/quest
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/CommandHelpers.java

    r488 r639  
    11package de.ugoe.cs.quest; 
     2 
     3import java.util.logging.Level; 
    24 
    35import de.ugoe.cs.util.console.Console; 
     
    5052         */ 
    5153        public static void dataOverwritten(String objectName) { 
    52                 Console.traceln("Existing object " + objectName + " overwritten."); 
     54                Console.traceln(Level.INFO, "Existing object " + objectName + " overwritten."); 
    5355        } 
    5456} 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ReplayGenerator.java

    r560 r639  
    88import java.util.Collection; 
    99import java.util.List; 
     10import java.util.logging.Level; 
    1011 
    1112import de.ugoe.cs.quest.IReplayDecorator; 
     
    137138            fileCreated = file.createNewFile(); 
    138139            if (!fileCreated) { 
    139                 Console.traceln("Created logfile " + filename); 
     140                Console.traceln(Level.INFO, "Created logfile " + filename); 
    140141            } 
    141142            else { 
    142                 Console.traceln("Overwrote existing logfile " + filename); 
     143                Console.traceln(Level.INFO, "Overwrote existing logfile " + filename); 
    143144            } 
    144145        } 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateGreedy.java

    r547 r639  
    99import java.util.Map; 
    1010import java.util.Set; 
     11import java.util.logging.Level; 
    1112 
    1213import de.ugoe.cs.quest.CommandHelpers; 
     
    8687                        } 
    8788                } 
    88                 Console.traceln("" + allSequences.size() + " possible"); 
     89                Console.traceln(Level.INFO, "" + allSequences.size() + " possible"); 
    8990 
    9091                Collection<List<Event>> allSubSeqs = model 
     
    139140                        } 
    140141                        if (maxIndex < 0 || sequenceGain[maxIndex] <= 0.0 + eps) { 
    141                                 Console.traceln("No gain anymore! Desired coverage cannot be satisfied!"); 
     142                                Console.traceln(Level.WARNING, "No gain anymore! Desired coverage cannot be satisfied!"); 
    142143                                break; 
    143144                        } 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDshowTimer.java

    r434 r639  
    33import java.security.InvalidParameterException; 
    44import java.util.List; 
     5import java.util.logging.Level; 
    56 
    67import de.ugoe.cs.quest.CommandHelpers; 
     
    4546                long startTime = (Long) dataObject; 
    4647                long currentTime = System.currentTimeMillis(); 
    47                 Console.traceln("" + (currentTime - startTime) + " milliseconds"); 
     48                Console.traceln(Level.INFO, "" + (currentTime - startTime) + " milliseconds"); 
    4849        } 
    4950 
Note: See TracChangeset for help on using the changeset viewer.