notifier support

This commit is contained in:
Ville Rantanen
2018-02-19 14:37:08 +02:00
parent 1be6a713a6
commit 43e45f0592
4 changed files with 77 additions and 2 deletions

12
code/notifier.py.template Normal file
View 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()