package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Aug 30, 2015
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package wslog standardizes logging format for ws.go and ottoengine/ottoengine.go
@author R. S. Doiel, <rsdoiel@gmail.com>
copyright (c) 2015 all rights reserved.
Released under the BSD 2-Clause license
See: http://opensource.org/licenses/BSD-2-Clause
-
func LogRequest(method string, url *url.URL, remoteAddr, proto, referrer, userAgent string)
-
func LogResponse(code int, status string, method string, url *url.URL, remoteAddr string, ...)
-
func RequestLog(handler http.Handler) http.Handler
func LogRequest(method string, url *url.URL, remoteAddr, proto, referrer, userAgent string)
LogRequest generate an log message for HTTP requests.
LogResponse generate an log message for HTTP response.
RequestLog is a request log handler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.