Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeLogger ¶
func InitializeLogger(config schema.LogConfiguration, log bool) error
InitializeLogger configures the default loggers stack levels, formatting, and the output destinations.
Types ¶
type CtxPrintfLogger ¶ added in v4.36.8
type CtxPrintfLogger struct {
// contains filtered or unexported fields
}
CtxPrintfLogger is a logger that implements a common Printf logger with a ctx.
func LoggerCtxPrintf ¶ added in v4.36.8
func LoggerCtxPrintf(level logrus.Level) (logger *CtxPrintfLogger)
LoggerCtxPrintf returns a new CtxPrintfLogger given a level.
type PrintfLogger ¶ added in v4.36.8
type PrintfLogger struct {
// contains filtered or unexported fields
}
PrintfLogger is a logger that implements a common Printf logger.
func LoggerPrintf ¶ added in v4.36.8
func LoggerPrintf(level logrus.Level) (logger *PrintfLogger)
LoggerPrintf returns a new PrintfLogger given a level.
func (*PrintfLogger) Printf ¶ added in v4.36.8
func (l *PrintfLogger) Printf(format string, args ...interface{})
Printf is the implementation of the interface.
Click to show internal directories.
Click to hide internal directories.