Documentation ¶
Index ¶
- type AccessLogRecord
- func (r *AccessLogRecord) ApplicationId() string
- func (r *AccessLogRecord) FormatRequestHeader(k string) (v string)
- func (r *AccessLogRecord) FormatStartedAt() string
- func (r *AccessLogRecord) LogMessage() string
- func (r *AccessLogRecord) ResponseTime() float64
- func (r *AccessLogRecord) WriteTo(w io.Writer) (int64, error)
- type AccessLogger
- type FileAndLoggregatorAccessLogger
- type NullAccessLogger
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
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 (x *FileAndLoggregatorAccessLogger) Log(r AccessLogRecord)
func (*FileAndLoggregatorAccessLogger) Run ¶
func (x *FileAndLoggregatorAccessLogger) Run()
func (*FileAndLoggregatorAccessLogger) Stop ¶
func (x *FileAndLoggregatorAccessLogger) Stop()
type NullAccessLogger ¶
type NullAccessLogger struct { }
func (*NullAccessLogger) Log ¶
func (x *NullAccessLogger) Log(AccessLogRecord)
func (*NullAccessLogger) Run ¶
func (x *NullAccessLogger) Run()
func (*NullAccessLogger) Stop ¶
func (x *NullAccessLogger) Stop()
Click to show internal directories.
Click to hide internal directories.