On 4 maio, 12:55, Tapi wrote:
> Hi,
>
> You may create a subclass of (or Mixin for) BaseHTTPRequestHandler to
> override its log_message() method.
> Here's a really simple example ; it's perfectible, but it should show
> you the way :
>
> class MyLoggingHTTPRequestHandler(BaseHTTPRequestHandler):
Hi,
You may create a subclass of (or Mixin for) BaseHTTPRequestHandler to
override its log_message() method.
Here's a really simple example ; it's perfectible, but it should show
you the way :
class MyLoggingHTTPRequestHandler(BaseHTTPRequestHandler):
def log_message(self, format, *args):
First, i'm sorry for any inglish error!
So, i use the BaseHTTPServer to create a page for monitoring purposes,
someone now how to direct the event log to a file?
--
http://mail.python.org/mailman/listinfo/python-list