MCPcopy
hub / github.com/runfinch/finch / Logger

Interface Logger

pkg/flog/log.go:10–23  ·  view source on GitHub ↗

Logger should be used to write any logs. No concrete implementations should be directly used. go:generate mockgen -copyright_file=../../copyright_header -destination=../mocks/logger.go -package=mocks -mock_names Logger=Logger . Logger

Source from the content-addressed store, hash-verified

8//
9//go:generate mockgen -copyright_file=../../copyright_header -destination=../mocks/logger.go -package=mocks -mock_names Logger=Logger . Logger
10type Logger interface {
11 Debugf(format string, args ...interface{})
12 Debugln(args ...interface{})
13 Info(args ...interface{})
14 Infof(format string, args ...interface{})
15 Infoln(args ...interface{})
16 Warnln(args ...interface{})
17 Warnf(format string, args ...interface{})
18 Error(args ...interface{})
19 Errorf(format string, args ...interface{})
20 Fatal(args ...interface{})
21 SetLevel(level Level)
22 SetFormatter(formatter Formatter)
23}
24
25// Log defines the properties of every log message.
26type Log struct {

Callers 90

createMethod · 0.65
createMethod · 0.65
toVMStatusFunction · 0.65
toVMTypeFunction · 0.65
DebuglnMethod · 0.65
checkJournalCmdOutputsFunction · 0.65
GenerateSupportBundleMethod · 0.65

Implementers 3

Loggerpkg/mocks/logger.go
LoggerMockRecorderpkg/mocks/logger.go
Logruspkg/flog/logrus.go

Calls

no outgoing calls

Tested by

no test coverage detected