/[shmookey]/portconf/Log.py


UCC Code Repository

Contents of /portconf/Log.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (show annotations) (download) (as text)
Fri May 2 07:24:33 2008 UTC (12 years, 7 months ago) by shmookey
File MIME type: text/x-python
File size: 203 byte(s)
error checking

1 import time
2
3 def Message (message, sender, type):
4 lf = open ("messages.log", 'a')
5 lf.write ("[" + time.strftime ("%Y%m%d%H%M%S") + "] [" + type + "] [" + sender + "] [" + message + "]\n")
6 lf.close ()

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26