Files
2026-01-01 21:07:34 +01:00

22 lines
476 B
Python

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()