log_formatter.py
changeset 51 07ca28f3a9f2
parent 50 f13cf27a360b
child 55 5667d2bbdc50
--- a/log_formatter.py	Mon Feb 09 00:24:13 2009 +0200
+++ b/log_formatter.py	Mon Feb 09 01:11:05 2009 +0200
@@ -10,6 +10,9 @@
     """
         Provides a method to format series of LogLines into various output formats, with varying themes
     """
+
+    # the formatter's code name
+    name = None
     
     def __init__ (self, tz, timestamp_fmt="%H:%M:%S") :
         """
@@ -72,6 +75,8 @@
         Implements plain black-and-white irssi-style formatting
     """
 
+    name = 'irssi'
+
     def format_html (self, lines) :
         """
             Just uses format_txt, but wraps in <pre></pre>