cli instead of web

This commit is contained in:
who
2007-11-12 14:52:41 +01:00
parent 261b60d003
commit 4686523707
14 changed files with 75 additions and 254 deletions

View File

@ -1,26 +0,0 @@
import syslog
class Logger(object):
def log(data):
syslog.syslog(syslog.LOG_INFO, data)
if Logger.debugFlag:
print data
def debug(data):
syslog.syslog(syslog.LOG_DEBUG, data)
if Logger.debugFlag:
print data
def openlog():
syslog.openlog('hsc', syslog.LOG_PID, syslog.LOG_LOCAL0)
def debugEnable():
Logger.debugFlag = True
log = staticmethod(log)
debug = staticmethod(debug)
openlog = staticmethod(openlog)
debugEnable = staticmethod(debugEnable)
debugFlag = False