Package whlog provides functionality to log incoming requests and results.
ListenAndServe creates a TCP listener prior to calling Serve. It also logs the address it listens on, and wraps given handlers in whcompat.DoneNotify. Like the standard library, it sets TCP keepalive semantics on.
LogRequests takes a Handler and makes it log requests (prior to request handling). whlog.Default makes a good default logger.
LogResponses takes a Handler and makes it log responses. LogResponses uses whmon's ResponseWriter to keep track of activity. whfatal.Catch should be placed *inside* if applicable. whlog.Default makes a good default logger.