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

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/EventGenerator.java

    r619 r639  
    1212import java.util.Map; 
    1313import java.util.NoSuchElementException; 
     14import java.util.logging.Level; 
    1415 
    1516import org.jdom.Document; 
     
    192193                } 
    193194 
    194                 Console.traceln(currentEvent.getType().toString() + " matched"); 
     195                Console.traceln(Level.FINE, currentEvent.getType().toString() + " matched"); 
    195196            } 
    196197            else { 
     
    199200        } 
    200201        if (!isMatch) { 
    201             Console.traceln("no match found for sequence: " + sequence.toString()); 
     202            Console.traceln(Level.WARNING, "no match found for sequence: " + sequence.toString()); 
    202203        } 
    203204         
     
    905906                    int index = target.lastIndexOf("<"); 
    906907                    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 " + 
    908909                                        "probably invalid!"); 
    909910                    } 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/LogPreprocessor.java

    r581 r639  
    66import java.io.IOException; 
    77import java.io.OutputStreamWriter; 
     8import java.util.logging.Level; 
    89 
    910import org.apache.commons.codec.binary.Base64; 
     
    130131                for (String filename : folder.list()) { 
    131132                        String source = absolutPath + "/" + filename; 
    132                         Console.traceln("Processing file: " + source); 
     133                        Console.traceln(Level.INFO, "Processing file: " + source); 
    133134                        processFile(source, targetFile); 
    134135                } 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParser.java

    r619 r639  
    1515import java.util.SortedMap; 
    1616import java.util.TreeMap; 
     17import java.util.logging.Level; 
    1718 
    1819import javax.xml.parsers.ParserConfigurationException; 
     
    250251    { 
    251252        if (qName.equals("session")) { 
    252             Console.traceln("start of session"); 
     253            Console.traceln(Level.FINE, "start of session"); 
    253254            // in some logs, the session end may be marked in between the log. This is because 
    254255            // of thread problems. So instead of creating a new GUI model, preserve it. 
     
    332333                } 
    333334                catch (InvalidParameterException e) { 
    334                     Console.traceln(e.getMessage() + " WindowsMessage " + currentMessageType + 
     335                    Console.traceln(Level.WARNING, e.getMessage() + " WindowsMessage " + currentMessageType + 
    335336                                    " ignored."); 
    336337                } 
     
    343344                sequences.add(seq); 
    344345            } 
    345             Console.traceln("end of session"); 
     346            Console.traceln(Level.FINE, "end of session"); 
    346347        } 
    347348    } 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/SequenceSplitter.java

    r619 r639  
    44import java.util.LinkedList; 
    55import java.util.List; 
     6import java.util.logging.Level; 
    67 
    78import de.ugoe.cs.quest.eventcore.Event; 
     
    9798                if (msg.getType().isKeyMessage() && openDowns > 0) { 
    9899                    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."); 
    100101                } 
    101102            } 
Note: See TracChangeset for help on using the changeset viewer.