MCPcopy
hub / github.com/andeya/pholcus / LoggerInterface

Interface LoggerInterface

logs/logs/log.go:67–72  ·  view source on GitHub ↗

LoggerInterface defines the behavior of a log provider.

Source from the content-addressed store, hash-verified

65
66// LoggerInterface defines the behavior of a log provider.
67type LoggerInterface interface {
68 Init(config map[string]interface{}) error
69 WriteMsg(msg string, level int) error
70 Destroy()
71 Flush()
72}
73
74var adapters = make(map[string]loggerType)
75

Callers 17

TestConsoleDestroyFlushFunction · 0.65
SetLoggerMethod · 0.65
TestConsoleDestroyFlushFunction · 0.65
writerMsgMethod · 0.65
startLoggerMethod · 0.65
CloseMethod · 0.65
TestConsoleDestroyFlushFunction · 0.65
DelLoggerMethod · 0.65
CloseMethod · 0.65
TestFlushFunction · 0.65
TestFileAdapterFunction · 0.65

Implementers 4

ConsoleWriterlogs/logs/console.go
FileLogWriterlogs/logs/file.go
ConnWriterlogs/logs/conn.go
SmtpWriterlogs/logs/smtp.go

Calls

no outgoing calls

Tested by

no test coverage detected