wslog

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2015 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(method string, url *url.URL, remoteAddr, proto, referrer, userAgent string)

LogRequest generate an log message for HTTP requests.

func LogResponse

func LogResponse(code int, status string, method string, url *url.URL, remoteAddr string, filepath string, message string)

LogResponse generate an log message for HTTP response.

func RequestLog

func RequestLog(handler http.Handler) http.Handler

RequestLog is a request log handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL