Files
config/herbstluftwm/hl_error.py
2017-02-24 15:48:52 +01:00

9 lines
254 B
Python
Executable File

import datetime
import sys
import os
def error(s):
with open("herbstlog",'a') as f:
time = str(datetime.datetime.now().time())[:-7] #cut seconds at the end
f.write(time + "ERROR" + os.path.basename(__file__) + s)