13 lines
259 B
Plaintext
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()
|
|
|
|
|