First commit of POC version
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from sys import stderr
|
||||
|
||||
LOGFILE = '/tmp/wsgi_lapp.log'
|
||||
DEBUG = 0
|
||||
INFO = 1
|
||||
|
||||
class Log:
|
||||
@staticmethod
|
||||
def info(someString):
|
||||
if INFO:
|
||||
f = open(LOGFILE, "a")
|
||||
f.write( "flower: %s \n" % someString )
|
||||
f.close()
|
||||
if DEBUG:
|
||||
print(someString)
|
||||
|
||||
@staticmethod
|
||||
def debug(someString):
|
||||
if DEBUG:
|
||||
f = open(LOGFILE, "a")
|
||||
f.write( "flower: %s \n" % someString )
|
||||
f.close()
|
||||
Reference in New Issue
Block a user