- Timestamp:
- 08/27/12 15:53:25 (12 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java
r320 r639 4 4 import java.util.ArrayList; 5 5 import java.util.List; 6 import java.util.logging.Level; 6 7 7 8 /** … … 161 162 } catch (InstantiationException e) { 162 163 } 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"); 164 165 } 165 166 return cmd; -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexec.java
r322 r639 8 8 import java.security.InvalidParameterException; 9 9 import java.util.List; 10 import java.util.logging.Level; 10 11 11 12 import de.ugoe.cs.util.console.Command; … … 45 46 commands = (new String(buffer)).split("\n"); 46 47 for (String command : commands) { 47 Console.traceln( command.trim());48 Console.traceln(Level.INFO, "Executing \"" + command.trim() + "\""); 48 49 CommandExecuter.getInstance().exec(command); 49 50 } -
trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/DrawFromAllSequencesGenerator.java
r559 r639 11 11 import java.util.Random; 12 12 import java.util.Set; 13 import java.util.logging.Level; 13 14 14 15 import de.ugoe.cs.quest.eventcore.Event; … … 140 141 } 141 142 } 142 Console.traceln( "" + sequences.size() + " possible");143 Console.traceln(Level.INFO, "" + sequences.size() + " possible"); 143 144 if (!generateAll && numSequences < sequences.size()) { 144 145 List<Double> probabilities = new ArrayList<Double>(sequences.size()); -
trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/HybridGenerator.java
r559 r639 9 9 import java.util.List; 10 10 import java.util.Random; 11 import java.util.logging.Level; 11 12 12 13 import de.ugoe.cs.quest.eventcore.Event; … … 110 111 new ArrayList<List<Event>>(model.generateSequences(maxLengthAll + 1, true)); 111 112 112 Console.traceln( "" + seqsTmp.size() + " of length " + maxLengthAll + " possible");113 Console.traceln(Level.INFO, "" + seqsTmp.size() + " of length " + maxLengthAll + " possible"); 113 114 List<Double> probabilities = new ArrayList<Double>(seqsTmp.size()); 114 115 double probSum = 0.0; -
trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/FirstOrderMarkovModel.java
r559 r639 7 7 import java.util.List; 8 8 import java.util.Random; 9 import java.util.logging.Level; 9 10 10 11 import de.ugoe.cs.quest.eventcore.Event; … … 138 139 139 140 if (rank != 1) { 140 Console.traceln( "rank: " + rank);141 Console.traceln(Level.FINE, "rank: " + rank); 141 142 Console.printerrln("Unable to calculate stationary distribution."); 142 143 return Double.NaN; -
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgTestCasesToSequences.java
r556 r639 7 7 import java.util.LinkedList; 8 8 import java.util.List; 9 import java.util.logging.Level; 9 10 10 11 import de.ugoe.cs.quest.CommandHelpers; … … 61 62 } 62 63 for (File testcaseFile : testcaseFiles) { 63 Console.traceln( "Loading from file "64 Console.traceln(Level.INFO, "Loading from file " 64 65 + testcaseFile.getAbsolutePath()); 65 66 sequences.add(parser.parseTestCaseFile(testcaseFile)); -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParser.java
r616 r639 17 17 import java.util.List; 18 18 import java.util.Map; 19 import java.util.logging.Level; 19 20 import java.util.regex.Matcher; 20 21 import java.util.regex.Pattern; … … 311 312 } 312 313 if (qName.equals("newsession")) { 313 Console.traceln( "start of session");314 Console.traceln(Level.FINE, "start of session"); 314 315 if (currentSequence != null && !currentSequence.isEmpty()) { 315 316 // create a copy of the list just to have a correctly typed one. -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDparseDirJFC.java
r573 r639 6 6 import java.util.Collection; 7 7 import java.util.List; 8 import java.util.logging.Level; 8 9 9 10 import de.ugoe.cs.quest.CommandHelpers; … … 57 58 for (String filename : folder.list()) { 58 59 String source = absolutPath + "/" + filename; 59 Console.traceln( "Processing file: " + source);60 Console.traceln(Level.INFO, "Processing file: " + source); 60 61 61 62 parser.parseFile(source); -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDpreprocessDirJFC.java
r573 r639 11 11 import java.security.InvalidParameterException; 12 12 import java.util.List; 13 import java.util.logging.Level; 13 14 14 15 import de.ugoe.cs.util.console.Command; … … 57 58 for (String filename : sourceFolder.list()) { 58 59 String source = absolutPathSource + "/" + filename; 59 Console.traceln( "Preprocessing file: " + source);60 Console.traceln(Level.INFO, "Preprocessing file: " + source); 60 61 File file = new File(source); 61 62 InputStreamReader reader; … … 85 86 + filename.substring(0, index) + ".xml"; 86 87 87 Console.traceln( " Saving as: " + target);88 Console.traceln(Level.INFO, " Saving as: " + target); 88 89 89 90 OutputStreamWriter writer; -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/EventGenerator.java
r619 r639 12 12 import java.util.Map; 13 13 import java.util.NoSuchElementException; 14 import java.util.logging.Level; 14 15 15 16 import org.jdom.Document; … … 192 193 } 193 194 194 Console.traceln( currentEvent.getType().toString() + " matched");195 Console.traceln(Level.FINE, currentEvent.getType().toString() + " matched"); 195 196 } 196 197 else { … … 199 200 } 200 201 if (!isMatch) { 201 Console.traceln( "no match found for sequence: " + sequence.toString());202 Console.traceln(Level.WARNING, "no match found for sequence: " + sequence.toString()); 202 203 } 203 204 … … 905 906 int index = target.lastIndexOf("<"); 906 907 if (index == 0) { 907 Console.traceln( "Trying to adress parent of top-level window! Replay " +908 Console.traceln(Level.WARNING, "Trying to adress parent of top-level window! Replay " + 908 909 "probably invalid!"); 909 910 } -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/LogPreprocessor.java
r581 r639 6 6 import java.io.IOException; 7 7 import java.io.OutputStreamWriter; 8 import java.util.logging.Level; 8 9 9 10 import org.apache.commons.codec.binary.Base64; … … 130 131 for (String filename : folder.list()) { 131 132 String source = absolutPath + "/" + filename; 132 Console.traceln( "Processing file: " + source);133 Console.traceln(Level.INFO, "Processing file: " + source); 133 134 processFile(source, targetFile); 134 135 } -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParser.java
r619 r639 15 15 import java.util.SortedMap; 16 16 import java.util.TreeMap; 17 import java.util.logging.Level; 17 18 18 19 import javax.xml.parsers.ParserConfigurationException; … … 250 251 { 251 252 if (qName.equals("session")) { 252 Console.traceln( "start of session");253 Console.traceln(Level.FINE, "start of session"); 253 254 // in some logs, the session end may be marked in between the log. This is because 254 255 // of thread problems. So instead of creating a new GUI model, preserve it. … … 332 333 } 333 334 catch (InvalidParameterException e) { 334 Console.traceln( e.getMessage() + " WindowsMessage " + currentMessageType +335 Console.traceln(Level.WARNING, e.getMessage() + " WindowsMessage " + currentMessageType + 335 336 " ignored."); 336 337 } … … 343 344 sequences.add(seq); 344 345 } 345 Console.traceln( "end of session");346 Console.traceln(Level.FINE, "end of session"); 346 347 } 347 348 } -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/SequenceSplitter.java
r619 r639 4 4 import java.util.LinkedList; 5 5 import java.util.List; 6 import java.util.logging.Level; 6 7 7 8 import de.ugoe.cs.quest.eventcore.Event; … … 97 98 if (msg.getType().isKeyMessage() && openDowns > 0) { 98 99 Console 99 .traceln( "Key message found with open down mouse messages - will probabably result in a faulty sequence.");100 .traceln(Level.SEVERE, "Key message found with open down mouse messages - will probabably result in a faulty sequence."); 100 101 } 101 102 } -
trunk/quest-plugin-php/src/main/java/de/ugoe/cs/quest/plugin/php/WeblogParser.java
r584 r639 15 15 import java.util.Map; 16 16 import java.util.Set; 17 import java.util.logging.Level; 17 18 18 19 import de.ugoe.cs.quest.eventcore.Event; … … 339 340 cookieTimestampMap.put(cookie, timestamp); 340 341 } catch (URISyntaxException e) { 341 Console.traceln( "Ignored line " + lineCounter + ": "342 Console.traceln(Level.FINE, "Ignored line " + lineCounter + ": " 342 343 + e.getMessage()); 343 344 } 344 345 } 345 346 } 346 Console.traceln( "" + sequences.size() + " user sequences found");347 Console.traceln(Level.INFO, "" + sequences.size() + " user sequences found"); 347 348 pruneSequences(); 348 Console.traceln( "" + sequences.size()349 Console.traceln(Level.INFO, "" + sequences.size() 349 350 + " remaining after pruning of sequences shorter than " 350 351 + minLength); 351 352 Set<String> uniqueUsers = new HashSet<String>(users); 352 Console.traceln( "" + uniqueUsers.size() + " unique users");353 Console.traceln(Level.INFO, "" + uniqueUsers.size() + " unique users"); 353 354 if (frequentUsersThreshold > 0) { 354 355 generateFrequentUserSequences(uniqueUsers); … … 386 387 } 387 388 } 388 Console.traceln( "" + frequentUsers.size() + " users with more than "389 Console.traceln(Level.INFO, "" + frequentUsers.size() + " users with more than " 389 390 + frequentUsersThreshold + " sequences"); 390 391 } -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/CommandHelpers.java
r488 r639 1 1 package de.ugoe.cs.quest; 2 3 import java.util.logging.Level; 2 4 3 5 import de.ugoe.cs.util.console.Console; … … 50 52 */ 51 53 public static void dataOverwritten(String objectName) { 52 Console.traceln( "Existing object " + objectName + " overwritten.");54 Console.traceln(Level.INFO, "Existing object " + objectName + " overwritten."); 53 55 } 54 56 } -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ReplayGenerator.java
r560 r639 8 8 import java.util.Collection; 9 9 import java.util.List; 10 import java.util.logging.Level; 10 11 11 12 import de.ugoe.cs.quest.IReplayDecorator; … … 137 138 fileCreated = file.createNewFile(); 138 139 if (!fileCreated) { 139 Console.traceln( "Created logfile " + filename);140 Console.traceln(Level.INFO, "Created logfile " + filename); 140 141 } 141 142 else { 142 Console.traceln( "Overwrote existing logfile " + filename);143 Console.traceln(Level.INFO, "Overwrote existing logfile " + filename); 143 144 } 144 145 } -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateGreedy.java
r547 r639 9 9 import java.util.Map; 10 10 import java.util.Set; 11 import java.util.logging.Level; 11 12 12 13 import de.ugoe.cs.quest.CommandHelpers; … … 86 87 } 87 88 } 88 Console.traceln( "" + allSequences.size() + " possible");89 Console.traceln(Level.INFO, "" + allSequences.size() + " possible"); 89 90 90 91 Collection<List<Event>> allSubSeqs = model … … 139 140 } 140 141 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!"); 142 143 break; 143 144 } -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDshowTimer.java
r434 r639 3 3 import java.security.InvalidParameterException; 4 4 import java.util.List; 5 import java.util.logging.Level; 5 6 6 7 import de.ugoe.cs.quest.CommandHelpers; … … 45 46 long startTime = (Long) dataObject; 46 47 long currentTime = System.currentTimeMillis(); 47 Console.traceln( "" + (currentTime - startTime) + " milliseconds");48 Console.traceln(Level.INFO, "" + (currentTime - startTime) + " milliseconds"); 48 49 } 49 50 -
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/CommandHistoryDialog.java
r570 r639 10 10 import java.io.OutputStreamWriter; 11 11 import java.util.LinkedList; 12 import java.util.logging.Level; 12 13 13 14 import org.eclipse.swt.widgets.Dialog; … … 129 130 fileCreated = file.createNewFile(); 130 131 if (!fileCreated) { 131 Console.traceln( "Created batchfile " + filename);132 Console.traceln(Level.INFO, "Created batchfile " + filename); 132 133 } 133 134 else { 134 Console.traceln( "Overwrote file " + filename);135 Console.traceln(Level.INFO, "Overwrote file " + filename); 135 136 } 136 137 }
Note: See TracChangeset
for help on using the changeset viewer.