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

Interface Logger

daemon/log/loggers/logger.go:16–20  ·  view source on GitHub ↗

Logger is the common interface that every logger must met. Serves as a generic holder of different types of loggers.

Source from the content-addressed store, hash-verified

14// Logger is the common interface that every logger must met.
15// Serves as a generic holder of different types of loggers.
16type Logger interface {
17 Transform(...interface{}) string
18 Write(string)
19 Close() error
20}
21
22// LoggerConfig holds the configuration of a logger
23type LoggerConfig struct {

Callers 18

writeMethod · 0.65
TransformMethod · 0.65
TransformMethod · 0.65
writeMethod · 0.65
writerWorkerFunction · 0.65
LogMethod · 0.65
LogMethod · 0.65
LogMethod · 0.65
NewFunction · 0.65
streamEventsWorkerFunction · 0.65
setupLoggingFunction · 0.65
doCleanupFunction · 0.65

Implementers 2

Remotedaemon/log/loggers/remote.go
Syslogdaemon/log/loggers/syslog.go

Calls

no outgoing calls

Tested by

no test coverage detected