alog

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApacheFormatPattern = "%s - - [%s] \"%s %d %d\" %f\n"
)

Variables

This section is empty.

Functions

func NewApacheLoggingHandler

func NewApacheLoggingHandler(handler http.Handler, config *config.ButlerConfig) http.Handler

Types

type ApacheLogRecord

type ApacheLogRecord struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*ApacheLogRecord) Log

func (r *ApacheLogRecord) Log()

func (*ApacheLogRecord) Write

func (r *ApacheLogRecord) Write(p []byte) (int, error)

func (*ApacheLogRecord) WriteHeader

func (r *ApacheLogRecord) WriteHeader(status int)

type ApacheLoggingHandler

type ApacheLoggingHandler struct {
	// contains filtered or unexported fields
}

func (*ApacheLoggingHandler) ServeHTTP

func (h *ApacheLoggingHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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