Menu

#31 scraper logging is not really configured well

2.1.0
closed
None
5
2025-09-06
2010-06-07
Anonymous
No

this line:

private Logger logger = Logger.getLogger(""+System.currentTimeMillis());

should probably be something more like:

private Logger logger = Logger.getLogger("webharvest."+System.currentTimeMillis());

so you can actually get a grip on it from the logging config. why is it currentTimeMillis anyways?

Discussion

  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     this line:
    
         private Logger logger = Logger.getLogger(""+System.currentTimeMillis());
    
    • milestone: --> Backlog
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-19
    • assigned_to: Piotr Dyraga
     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-19

    Currently we are working on the new version: 2.1.0rc1 which we hope to release in a couple of days. This version has some improvements in the web harvest logging. You will be able to get a grip on a particular logger using its fully qualified class name, as usual. Also you can enable/disable logging level for the entire web harvest. For example:

    #log4j.logger.org.webharvest=OFF
    log4j.logger.org.webharvest = INFO
    log4j.logger.org.webharvest.definition.XmlNode = DEBUG
    

    Although 2.1.0rc1 is not yet officially released, you can obtain it from 2.1-release branch.

     
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-19
    • status: open --> closed
    • milestone: Backlog --> 2.1.0rc1-RELEASE
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB