fh = logging.FileHandler('/opt/python/dev/interim/httpd-kenserver.3.log')
fh.setLevel(logging.INFO)
frmt = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'
    )
fh.setFormatter(frmt)
httpdkenlogger.addHandler(fh)
How do you override BaseHTTPRequestHandler log_message() method to log to a file rather than to console (sys.stderr)?