MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Logger

Interface Logger

pkg/util/log/logger.go:24–37  ·  view source on GitHub ↗

Logger defines the devspace common logging interface

Source from the content-addressed store, hash-verified

22
23// Logger defines the devspace common logging interface
24type Logger interface {
25 log.Logger
26 // WithLevel creates a new logger with the given level
27 WithLevel(level logrus.Level) Logger
28 Question(params *survey.QuestionOptions) (string, error)
29 ErrorStreamOnly() Logger
30 WithPrefix(prefix string) Logger
31 WithPrefixColor(prefix, color string) Logger
32 WithSink(sink Logger) Logger
33 AddSink(sink Logger)
34
35 Writer(level logrus.Level, raw bool) io.WriteCloser
36 WriteString(level logrus.Level, message string)
37}

Callers 43

init.goFile · 0.65
GetLanguageMethod · 0.65
selectSingleContainerMethod · 0.65
selectSinglePodMethod · 0.65
AddImageMethod · 0.65
addPullSecretConfigMethod · 0.65
AddKubectlDeploymentMethod · 0.65
AddHelmDeploymentMethod · 0.65
askQuestionFunction · 0.65
ExecContainerFunction · 0.65
GetImageFunction · 0.65

Implementers 4

DiscardLoggerpkg/util/log/discard_logger.go
fileLoggerpkg/util/log/file_logger.go
StreamLoggerpkg/util/log/stream_logger.go
FakeLoggerpkg/util/log/testing/fake.go

Calls

no outgoing calls

Tested by

no test coverage detected