Lines Matching defs:logfp
63 logfp = None # File object to log to, if not None
78 If the global logfp is not None, it should be a file object to
81 If the global logfp is None, the global logfile may be a string
88 global log, logfile, logfp
91 if logfile and not logfp:
93 logfp = open(logfile, "a", encoding="locale")
96 if not logfp:
104 logfp.write(fmt%args + "\n")
112 global log, logfile, logfp
114 if logfp:
115 logfp.close()
116 logfp = None