Documentation
¶
Overview ¶
Package accesslog logs HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler wraps an existing http.Handler and logs any requests routed along to the handler, in the following format:
127.0.0.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
Output is logged to the dest parameter. If dest is nil, the default logger of the log package is used.
Types ¶
Click to show internal directories.
Click to hide internal directories.