Skip to content
johnnyquest edited this page Jun 9, 2011 · 4 revisions

General-purpose message/logging function

Python

def msg(m): # TODO msg = "[%s script.py] %s" % (datetime.datetime.now().strftime("%y%m%d %H:%M.%S"), m) sys.stderr.write(msg+"\n") print msg

MEL

Clone this wiki locally