first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from sys import stderr
|
||||
from Config import *
|
||||
|
||||
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