MCPcopy
hub / github.com/crowdsecurity/crowdsec / Format

Method Format

pkg/logging/syslog.go:27–29  ·  view source on GitHub ↗
(e *logrus.Entry)

Source from the content-addressed store, hash-verified

25type SyslogFormatter struct{}
26
27func (*SyslogFormatter) Format(e *logrus.Entry) ([]byte, error) {
28 return []byte(e.Message + "\n"), nil
29}
30
31type FormatterSyslogHook struct {
32 Writer *syslog.Writer

Callers 15

makeRaceAlertsFunction · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45

Calls

no outgoing calls

Tested by 6

makeRaceAlertsFunction · 0.36
TestTimestampTimeFunction · 0.36
feedVLogsFunction · 0.36
TestTimestampFunction · 0.36
TestAPICGetMetricsFunction · 0.36
GetAlertReaderFromFileFunction · 0.36