Re: Handling the log in BaseHTTPServer

2011-05-04 Thread LehH Sdsk8
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):

Re: Handling the log in BaseHTTPServer

2011-05-04 Thread Tapi
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):

Handling the log in BaseHTTPServer

2011-05-04 Thread LehH Sdsk8
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