"""
This file contains global functions for formatting and printing data. This file
-should be imported into individual log-parsing scripts located in logs/*. Data
-is formatted in HTML or plaintext. Writing to disk and/or emailng data is left
-to interface.py.
+should be imported into individual log-parsing scripts located in the default
+logparse.parsers module or in the user-supplied parsers directory. Data is
+formatted in HTML or plaintext. Writing to disk and/or emailng data is left to
+interface.py.
"""
import os
This should be run by interface.py after every instance of parse_log().
"""
+ if section == None:
+ logger.warning("Received null section")
+ return
self.append(PlaintextBox(
content=section.title, double=False,
fullwidth=False, vpadding=0, hpadding=" ").draw())
instance of parse_log().
"""
+ if section == None:
+ logger.warning("Received null section")
+ return
self.append(opentag('div', 1, section.title, 'section'))
self.append(self._gen_title(section.title))
if section.period and section.period.unique: