On Sun, Jun 06, 2010 at 03:17:54PM +0100, Enrico Zini wrote:

> I'll now quietly go in a corner to sob and pull all my hair out one by
> one.

Just for fun, if you use wsgiref's server, it uses BaseHTTPServer, and
look at this:

    From /usr/lib/python2.5/BaseHTTPServer.py:

    def log_message(self, format, *args):
        """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 host and current date/time are prefixed to
        every message.

        """

        sys.stderr.write("%s - - [%s] %s\n" %
                         (self.address_string(),
                          self.log_date_time_string(),
                          format%args))

That is, in the standard library they have a logging module, and they
don't even use it in the http server they ship with the standard
library.

The conclusion is that noone on Earth gives a shit about controlling the
logging of embeddable http servers except me, and I should just move to
a different planet.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <[email protected]>

Attachment: signature.asc
Description: Digital signature

Reply via email to