Documentation
¶
Index ¶
- Constants
- func GetLoggerFromContext(ctx context.Context) (*log.Entry, bool)
- func GetLoggerFromContextOrDefault(ctx context.Context) *log.Entry
- func GetLoggerFromContextOrDiscard(ctx context.Context) *log.Entry
- func InitLogger(level string, output io.Writer)
- func SetLoggerForContext(ctx context.Context, l *log.Entry) context.Context
- type LoggerContextKeyType
Constants ¶
View Source
const (
DefaultLogLevel = log.WarnLevel
)
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
Types ¶
type LoggerContextKeyType ¶
type LoggerContextKeyType string
const LoggerContextKey LoggerContextKeyType = "VMClarityContextLogger"
Click to show internal directories.
Click to hide internal directories.