summaryrefslogtreecommitdiff
path: root/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'common.py')
-rw-r--r--common.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/common.py b/common.py
deleted file mode 100644
index 7a70a8b..0000000
--- a/common.py
+++ /dev/null
@@ -1,10 +0,0 @@
-def log(logfile,component,msg):
- ''' write message to log file with timestamp and script name '''
- import datetime
- _component = str(component)
- _msg = str(msg)
- dt = str(datetime.datetime.now()).split('.')[0]
- to_log = "[%s][%s] %s" % (dt, _component, _msg)
- log_file = open(LOGFILE,'a')
- log_file.write('%s\n' % to_log)
- log_file.close()