19 lines
305 B
Go
19 lines
305 B
Go
package format
|
|
|
|
import (
|
|
"bufio"
|
|
|
|
"github.com/jeromer/syslogparser"
|
|
"github.com/jeromer/syslogparser/rfc5424"
|
|
)
|
|
|
|
type RFC5424 struct{}
|
|
|
|
func (f *RFC5424) GetParser(line []byte) syslogparser.LogParser {
|
|
return rfc5424.NewParser(line)
|
|
}
|
|
|
|
func (f *RFC5424) GetSplitFunc() bufio.SplitFunc {
|
|
return nil
|
|
}
|