MCPcopy
hub / github.com/evilsocket/opensnitch / LoggerFormat

Interface LoggerFormat

daemon/log/formats/formats.go:17–19  ·  view source on GitHub ↗

LoggerFormat is the common interface that every format must meet. Transform expects an arbitrary number of arguments and types, and it must transform them to a string. Arguments can be of type Connection, string, int, etc.

Source from the content-addressed store, hash-verified

15// it must transform them to a string.
16// Arguments can be of type Connection, string, int, etc.
17type LoggerFormat interface {
18 Transform(...interface{}) string
19}
20
21var (
22 ourPid = ""

Callers

nothing calls this directly

Implementers 6

Csvdaemon/log/formats/csv.go
Rfc3164daemon/log/formats/rfc3164.go
Rfc5424daemon/log/formats/rfc5424.go
JSONEventFormatdaemon/log/formats/json.go
Remotedaemon/log/loggers/remote.go
Syslogdaemon/log/loggers/syslog.go

Calls

no outgoing calls

Tested by

no test coverage detected