Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(level instalogger.Level)
SetLogLevel configures the min log level for autoprofile defaultLogger
func SetLogger ¶ added in v1.8.0
func SetLogger(l LeveledLogger)
SetLogger sets the leveled logger to use to output the diagnostic messages and errors
Types ¶
type LeveledLogger ¶ added in v1.8.0
type LeveledLogger interface { Debug(v ...interface{}) Info(v ...interface{}) Warn(v ...interface{}) Error(v ...interface{}) }
LeveledLogger is an interface of a generic logger that support different message levels. By default instana.Sensor uses logger.Logger with log.Logger as an output, however this interface is also compatible with such popular loggers as github.com/sirupsen/logrus.Logger and go.uber.org/zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.