Ignore:
Timestamp:
08/31/12 10:27:50 (12 years ago)
Author:
pharms
Message:
  • use console for logging instead of logger
File:
1 edited

Legend:

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

    r655 r725  
    33import java.util.ArrayList; 
    44import java.util.List; 
    5 import java.util.logging.Logger; 
     5import java.util.logging.Level; 
    66 
    77import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTree; 
     8import de.ugoe.cs.util.console.Console; 
    89 
    910/** 
     
    1516public class UsabilityEvaluationManager { 
    1617     
    17     /** */ 
    18     private static Logger LOG = Logger.getLogger(UsabilityEvaluationManager.class.getName()); 
    19  
    2018    /** */ 
    2119    private List<UsabilityEvaluationRule> rules = new ArrayList<UsabilityEvaluationRule>(); 
     
    4442     */ 
    4543    public UsabilityEvaluationResult evaluateUsability(ITaskTree taskTree) { 
    46         LOG.info("evaluating usability of task tree " + taskTree); 
     44        Console.traceln(Level.INFO, "evaluating usability of task tree " + taskTree); 
    4745 
    4846        List<UsabilityEvaluationResult> results = new ArrayList<UsabilityEvaluationResult>(); 
    4947 
    5048        for (UsabilityEvaluationRule rule : rules) { 
    51             LOG.info("applying rule " + rule.getClass().getSimpleName()); 
     49            Console.traceln(Level.INFO, "applying rule " + rule.getClass().getSimpleName()); 
    5250            UsabilityEvaluationResult result = rule.evaluate(taskTree); 
    5351            results.add(result); 
    54             LOG.info("the rule found " + result.getAllDefects().size() + " usability defects, of " + 
    55                      "which " + result.getSevereDefects().size() + " are severe."); 
     52            Console.traceln(Level.INFO, "the rule found " + result.getAllDefects().size() + 
     53                            " usability defects, of which " + result.getSevereDefects().size() + 
     54                            " are severe."); 
    5655        } 
    5756 
    5857        UsabilityEvaluationResult result = mergeResults(results); 
    59         LOG.info("the evaluation result contains " + result.getAllDefects().size() + 
    60                  " defects, of which " + result.getSevereDefects().size() + " are severe."); 
     58        Console.println("the evaluation result contains " + result.getAllDefects().size() + 
     59                        " defects, of which " + result.getSevereDefects().size() + " are severe."); 
    6160        return result; 
    6261    } 
Note: See TracChangeset for help on using the changeset viewer.