+class EventFilter :
+
+ def __init__(self):
+ pass
+
+ def filter(self, record) :
+ return not hiddenEvents.has_key(record.eventType)
+
+logsdir = os.path.join(os.path.expanduser('~'), 'minwii_logs')
+if not os.path.exists(logsdir) :
+ os.mkdir(logsdir)
+
+logfile = os.path.join(logsdir, datetime.datetime.now().strftime('%Y-%m-%d-%H_%M_%S.log'))
+logfile = open(logfile, 'w')