~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/twistedsupport/loggingsupport.py

  • Committer: Julian Edwards
  • Date: 2011-12-09 12:55:05 UTC
  • mto: This revision was merged to the branch mainline in revision 14492.
  • Revision ID: julian.edwards@canonical.com-20111209125505-caqwcbppgfy9ekfw
fix some logging; TestBranchPuller still failing

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
from canonical.librarian.utils import copy_and_close
37
37
 
38
38
 
39
 
def set_up_logging_for_script(options, name):
 
39
def set_up_logging_for_script(options, name, logfile):
40
40
    """Create a `Logger` object and configure twisted to use it.
41
41
 
42
42
    This also configures oops reporting to use the section named
43
43
    'name'."""
44
44
    logger_object = logger(options, name)
45
 
    observer = set_up_oops_reporting(name, name)
 
45
    observer = set_up_oops_reporting(name, name, logfile)
46
46
    log.startLoggingWithObserver(observer)
47
47
    return logger_object
48
48