notifier support
This commit is contained in:
12
code/notifier.py.template
Normal file
12
code/notifier.py.template
Normal file
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
import time
|
||||
|
||||
class Notifier:
|
||||
def __init__(self):
|
||||
self.output = open('notifier.log','at')
|
||||
def notify(self, msg):
|
||||
self.output.write(str(time.time())+"\n")
|
||||
self.output.write(str(msg)+"\n")
|
||||
self.output.flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user