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-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/temporalrelation/TemporalRelationshipRuleManager.java

    r721 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.nodeequality.NodeEqualityRuleManager; 
     
    99import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; 
    1010import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNodeFactory; 
     11import de.ugoe.cs.util.console.Console; 
    1112 
    1213/** 
     
    1819public class TemporalRelationshipRuleManager { 
    1920     
    20     /** */ 
    21     private static Logger LOG = Logger.getLogger(TemporalRelationshipRuleManager.class.getName()); 
    22  
    2321    /** */ 
    2422    private NodeEqualityRuleManager nodeEqualityRuleManager; 
     
    4139     */ 
    4240    public void init() { 
    43         LOG.info("initializing"); 
    44  
    4541        ruleIndex.add(new DefaultEventTargetSequenceDetectionRule()); 
    4642        ruleIndex.add(new TrackBarSelectionDetectionRule(nodeEqualityRuleManager)); 
     
    7975                           String               logIndent) 
    8076    { 
    81         LOG.info(logIndent + "applying rules for " + parent); 
     77        Console.traceln(Level.FINER, logIndent + "applying rules for " + parent); 
    8278 
    8379        int noOfRuleApplications = 0; 
     
    9389                     RuleApplicationStatus.RULE_APPLICATION_FINISHED)) 
    9490                { 
    95                     LOG.info(logIndent + "applied rule " + rule + " on " + parent); 
     91                    Console.traceln 
     92                        (Level.FINE, logIndent + "applied rule " + rule + " on " + parent); 
    9693                    noOfRuleApplications++; 
    9794 
     
    117114 
    118115        if (noOfRuleApplications <= 0) { 
    119             LOG.warning(logIndent + "no rules applied --> no temporal relationship generated"); 
     116            Console.traceln(Level.INFO, logIndent + "no rules applied --> no temporal " + 
     117                            "relationship generated"); 
    120118        } 
    121119 
Note: See TracChangeset for help on using the changeset viewer.