示例#1
0
def write2log(txt):
    out_file = file(settings.UpdateLogFilename(), 'a')
    print >> out_file, txt
    out_file.close()
示例#2
0
def write2log(txt):
    out_file = open(settings.UpdateLogFilename(), 'a')
    out_file.write(strng.to_text(txt))
    out_file.close()
示例#3
0
def write2log(txt):
    out_file = open(settings.UpdateLogFilename(), 'a')
    print(txt, file=out_file)
    out_file.close()