modifié: m/fichier/conf

modifié:         m/loadConf.py
	nouveau fichier: m/log.py
	modifié:         m/login.py
	modifié:         superTornado.py
This commit is contained in:
sidya82
2014-03-02 22:57:48 +01:00
parent 70c0d27716
commit f1904ed512
5 changed files with 54 additions and 21 deletions

8
m/log.py Normal file
View File

@@ -0,0 +1,8 @@
import time
from datetime import datetime
class Log(object):
def enregDansLog(self,pLog,pMsg,pIP):
with open("m/fichier/log", "a") as dest :
d = datetime.now().strftime("%c")
dest.write("%s,%s,%s,%s\n" % (d,pLog,pMsg,pIP))