Files
flees/code/notifier.py.template
Ville Rantanen 43e45f0592 notifier support
2018-02-19 14:37:08 +02:00

13 lines
259 B
Plaintext

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