PyDocs

Nav

Internet Protocols and Support

BaseHTTPRequestHandler.log_message

  • BaseHTTPRequestHandler.log_message(format, ...)
Log an arbitrary message.

This is used by all other logging functions.  Override
it if you have specific logging wishes.

The first argument, FORMAT, is a format string for the
message to be logged.  If the format string contains
any % escapes requiring parameters, they should be
specified as subsequent arguments (it's just like
printf!).

The client ip and current date/time are prefixed to
every message.

Unicode control characters are replaced with escaped hex
before writing the output to stderr.
0 Examples
No examples for http.server/BaseHTTPRequestHandler.log_message.
See Also
No see-alsos for http.server/BaseHTTPRequestHandler.log_message
0 Notes
No notes for BaseHTTPRequestHandler.log_message