Documentation
¶
Index ¶
- Constants
- Variables
- type Directive
- type EOL
- type Entry
- type Field
- func Bytes(n int) Field
- func Comment(c string) Field
- func DNS(dns string) Field
- func ErrorMsg(err error) Field
- func IP(ipaddr string) Field
- func Method(method string) Field
- func NewField(data []byte) Field
- func Status(code int) Field
- func TimeTaken(dur time.Duration) Field
- func URI(uri string) Field
- func URIQuery(uri string) Field
- func URIStem(uri string) Field
Constants ¶
View Source
const ELFFV = "1.0"
ELFFV = Extended Log File Format Version
Variables ¶
View Source
var ( CRLF = EOL{0x0D, 0x0A} LF = EOL{0x0A} TAB = EOL{0x09} SPACE = EOL{0x20} )
Line terminator options
Functions ¶
This section is empty.
Types ¶
type Directive ¶
type Directive struct { Version string Software string Date string StartDate string EndDate string Fields []string Remark string }
Directive contains logfile metadata
func NewDirective ¶
NewDirective ...
type EOL ¶
type EOL []byte
EOL is the end of line terminator described here: https://www.w3.org/TR/WD-logfile
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry contains data for a log entry
Click to show internal directories.
Click to hide internal directories.