Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unknown = -1 Emergency = 0 Alert = 1 Critical = 2 Error = 3 Warning = 4 Notice = 5 Info = 6 Debug = 7 Trace = 8 )
Emergency...
Variables ¶
This section is empty.
Functions ¶
func ParseFloat ¶
ParseFloat is similar to strconv.ParseFloat, but operates on []byte which can save a string allocation and is therefore faster Note that it currently doesn't support exponents (scientific format of floats)
Types ¶
type Log ¶
type Log struct { RemoteAddr string Severity int64 Timestamp int64 Hostname string Application string Text string Metadata map[string]interface{} }
Log ...
func ParseLineWithFallback ¶
ParseLineWithFallback parses an individual line, and creates a message if the line is not valid
type NumError ¶
type NumError struct { Func string // the failing function (ParseBool, ParseInt, ParseUint, ParseFloat) Num string // the input Err error // the reason the conversion failed (e.g. ErrRange, ErrSyntax, etc.) }
A NumError records a failed conversion.
Click to show internal directories.
Click to hide internal directories.