Changeset 461:818f9fd41fdf

Show
Ignore:
Timestamp:
08/04/08 16:52:49 (5 months ago)
Author:
"Brian Warner <warner@lothar.com>"
branch:
default
Message:

change incident-gatherer filenames to be more distinct from each other

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    r460 r461  
    112008-08-04  Brian Warner  <warner@lothar.com> 
     2 
     3        * doc/logging.xhtml: change filenames in the incident-gatherer to 
     4        have fewer files starting with incident*, so tab-completion works 
     5        better. 
     6        * foolscap/logging/gatherer.py (IncidentGathererService): same 
     7        (create_incident_gatherer): same 
    28 
    39        * foolscap/test/test_logging.py (Filter): test 'flogtool filter' 
  • doc/logging.xhtml

    r440 r461  
    842842% flogtool create-incident-gatherer ig 
    843843Gatherer created in directory ig 
    844 Now run '(cd ig &amp;&amp; twistd -y incident-gatherer.tac)' to launch the daemon 
     844Now run '(cd ig &amp;&amp; twistd -y gatherer.tac)' to launch the daemon 
    845845% cd ig 
    846846% ls 
    847 incident-gatherer.tac 
    848 % twistd -y incident-gatherer.tac 
     847gatherer.tac 
     848% twistd -y gatherer.tac 
    849849% 
    850850</pre> 
     
    868868functions to analyze each Incident and place it into one or more categories. 
    869869To add a classification function, you will need to modify the 
    870 <code>incident-gatherer.tac</code> file, and make a call to 
     870<code>gatherer.tac</code> file, and make a call to 
    871871<code>ig.add_classifier()</code> with your function. These functions accept a 
    872872triggering event and a pathname (from which preceding log events can be 
  • foolscap/logging/gatherer.py

    r459 r461  
    397397    implements(RILogGatherer) 
    398398    verbose = True 
    399     furlFile = "incident_gatherer.furl" 
    400     tacFile = "incident-gatherer.tac" 
     399    furlFile = "log_gatherer.furl" 
     400    tacFile = "gatherer.tac" 
    401401 
    402402    def __init__(self, classifiers=[], basedir=None, stdout=None): 
     
    521521    if not os.path.exists(basedir): 
    522522        os.makedirs(basedir) 
    523     f = open(os.path.join(basedir, "incident-gatherer.tac"), "w") 
     523    f = open(os.path.join(basedir, "gatherer.tac"), "w") 
    524524    stashed_path = "" 
    525525    for p in sys.path: 
     
    530530    if not config["quiet"]: 
    531531        print >>stdout, "Incident Gatherer created in directory %s" % basedir 
    532         print >>stdout, "Now run '(cd %s && twistd -y incident-gatherer.tac)' to launch the daemon" % basedir 
     532        print >>stdout, "Now run '(cd %s && twistd -y gatherer.tac)' to launch the daemon" % basedir