--- 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>