Lines Matching defs:log
62 logfile = "" # Filename to log to, if not empty
63 logfp = None # File object to log to, if not None
66 """Write a log message, if there is a log file.
69 use log(); log is a variable that is set either to initlog
70 (initially), to dolog (once the log file has been opened), or to
75 log("%s: %s", "a", "b")
76 will write "a: b" to the log file, followed by a newline.
79 which log data is written.
88 global log, logfile, logfp
89 warnings.warn("cgi.log() is deprecated as of 3.10. Use logging instead",
97 log = nolog
99 log = dolog
100 log(*allargs)
103 """Write a log message to the log file. See initlog() for docs."""
107 """Dummy function, assigned to log when logging is disabled."""
111 """Close the log file."""
112 global log, logfile, logfp
117 log = initlog
119 log = initlog # The current logging function