access_log

package
v0.0.0-...-b7aefed Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2014 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLogRecord

type AccessLogRecord struct {
	Request       *http.Request
	StatusCode    int
	RouteEndpoint *route.Endpoint
	StartedAt     time.Time
	FirstByteAt   time.Time
	FinishedAt    time.Time
	BodyBytesSent int64
}

func (*AccessLogRecord) ApplicationId

func (r *AccessLogRecord) ApplicationId() string

func (*AccessLogRecord) FormatRequestHeader

func (r *AccessLogRecord) FormatRequestHeader(k string) (v string)

func (*AccessLogRecord) FormatStartedAt

func (r *AccessLogRecord) FormatStartedAt() string

func (*AccessLogRecord) LogMessage

func (r *AccessLogRecord) LogMessage() string

func (*AccessLogRecord) ResponseTime

func (r *AccessLogRecord) ResponseTime() float64

func (*AccessLogRecord) WriteTo

func (r *AccessLogRecord) WriteTo(w io.Writer) (int64, error)

type AccessLogger

type AccessLogger interface {
	Run()
	Stop()
	Log(record AccessLogRecord)
}

func CreateRunningAccessLogger

func CreateRunningAccessLogger(config *config.Config) (AccessLogger, error)

type FileAndLoggregatorAccessLogger

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

func NewFileAndLoggregatorAccessLogger

func NewFileAndLoggregatorAccessLogger(f io.Writer, dropsondeSourceInstance string) *FileAndLoggregatorAccessLogger

func (*FileAndLoggregatorAccessLogger) DropsondeSourceInstance

func (x *FileAndLoggregatorAccessLogger) DropsondeSourceInstance() string

func (*FileAndLoggregatorAccessLogger) FileWriter

func (x *FileAndLoggregatorAccessLogger) FileWriter() io.Writer

func (*FileAndLoggregatorAccessLogger) Log

func (*FileAndLoggregatorAccessLogger) Run

func (*FileAndLoggregatorAccessLogger) Stop

type NullAccessLogger

type NullAccessLogger struct {
}

func (*NullAccessLogger) Log

func (*NullAccessLogger) Run

func (x *NullAccessLogger) Run()

func (*NullAccessLogger) Stop

func (x *NullAccessLogger) Stop()

Jump to

Keyboard shortcuts

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