Documentation ¶
Overview ¶
Package whlog provides functionality to log incoming requests and results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
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.
func LogRequests ¶
LogRequests takes a Handler and makes it log requests (prior to request handling). whlog.Default makes a good default logger.
func LogResponses ¶
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.
Types ¶
Click to show internal directories.
Click to hide internal directories.