~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/sys_mgmt/logging_management.py

Merge in Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    def __init__(self, variables):
50
50
 
51
51
        self.log_file = sys.stdout
52
 
        self.report_fmt = '{0:<55} {1} {2:>12}'
53
 
        self.report_started = 0  
54
 
        self.thick_line = '='*80
55
 
        self.thin_line = '-'*80     
 
52
        self.report_fmt = '{0:<42} {1} {2:>8}'
 
53
        self.report_started = 0
 
54
        self.thick_line = '='*(80 - len("20110420-105402  "))
 
55
        self.thin_line = '-'*(80- len("20110420-105402  "))
56
56
 
57
57
    def _write_message(self,level, msg):
58
 
      self.log_file.write("%s %s: %s\n" % (time.strftime("%d %b %Y %H:%M:%S"), level, str(msg)))
 
58
      self.log_file.write("%s %s %s\n" % (time.strftime("%Y%m%d-%H%M%S"), level, str(msg)))
59
59
      self.log_file.flush()
60
60
 
61
61
    def setOutput(self,file_name):