mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 00:32:26 -05:00
Add optional syslog logrus hook (#343)
* add optional syslog logrus hook * document syslog
This commit is contained in:
parent
909f801742
commit
c111b239f7
38 changed files with 2242 additions and 37 deletions
17
vendor/gopkg.in/mcuadros/go-syslog.v2/format/rfc5424.go
generated
vendored
Normal file
17
vendor/gopkg.in/mcuadros/go-syslog.v2/format/rfc5424.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package format
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
|
||||
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc5424"
|
||||
)
|
||||
|
||||
type RFC5424 struct{}
|
||||
|
||||
func (f *RFC5424) GetParser(line []byte) LogParser {
|
||||
return &parserWrapper{rfc5424.NewParser(line)}
|
||||
}
|
||||
|
||||
func (f *RFC5424) GetSplitFunc() bufio.SplitFunc {
|
||||
return nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue