Documentation
¶
Index ¶
Constants ¶
View Source
const (
TIME_HIPACHE_MODE = "02/Jan/2006:15:04:05 -0700"
)
Variables ¶
View Source
var (
ErrorLogger = NewWriterLogger(syncCloser{os.Stderr})
)
Functions ¶
This section is empty.
Types ¶
type LogEntry ¶
type LogEntry struct {
Now time.Time
BackendDuration time.Duration
TotalDuration time.Duration
BackendKey string
RemoteAddr string
Method string
Path string
Proto string
Referer string
UserAgent string
RequestIDHeader string
RequestID string
ForwardedFor string
StatusCode int
ContentLength int64
Err *ErrEntry
}
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewFileLogger ¶
func NewStdoutLogger ¶
func NewSyslogLogger ¶
func NewWriterLogger ¶
func NewWriterLogger(writer io.WriteCloser) *Logger
func (*Logger) MessageRaw ¶
Click to show internal directories.
Click to hide internal directories.