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
	HeadersOverride        http.Header
	StatusCode             int
	RouteEndpoint          *route.Endpoint
	RoundtripStartedAt     time.Time
	FirstByteAt            time.Time
	RoundtripFinishedAt    time.Time
	AppRequestStartedAt    time.Time
	AppRequestFinishedAt   time.Time
	BodyBytesSent          int
	RequestBytesReceived   int
	ExtraHeadersToLog      []string
	DisableXFFLogging      bool
	DisableSourceIPLogging bool
	RedactQueryParams      string
	RouterError            string
	// contains filtered or unexported fields
}

    AccessLogRecord represents a single access log line

    func (*AccessLogRecord) ApplicationID

    func (r *AccessLogRecord) ApplicationID() string

      ApplicationID returns the application ID that corresponds with the access log

      func (*AccessLogRecord) LogMessage

      func (r *AccessLogRecord) LogMessage() string

        LogMessage returns a string representation of the access log line

        func (*AccessLogRecord) SendLog

        func (r *AccessLogRecord) SendLog(ls LogSender)

        func (*AccessLogRecord) WriteTo

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

          WriteTo allows the AccessLogRecord to implement the io.WriterTo interface

          type LogSender

          type LogSender interface {
          	SendAppLog(appID, message string, tags map[string]string)
          }

          Directories

          Path Synopsis
          Code generated by counterfeiter.
          Code generated by counterfeiter.