Documentation
¶
Overview ¶
Package log provides structured logging for TerraCi CLI
Index ¶
- Constants
- func Debug(msg string)
- func Debugf(format string, args ...any)
- func DecreasePadding()
- func Error(msg string)
- func Errorf(format string, args ...any)
- func Fatal(msg string)
- func Fatalf(format string, args ...any)
- func IncreasePadding()
- func Info(msg string)
- func Infof(format string, args ...any)
- func Init()
- func IsDebug() bool
- func ResetPadding()
- func SetLevel(level Level)
- func SetLevelFromString(level string) error
- func Warn(msg string)
- func Warnf(format string, args ...any)
- func WithError(err error) *log.Entry
- func WithField(key string, value any) *log.Entry
- type Level
Constants ¶
View Source
const ( DebugLevel = log.DebugLevel InfoLevel = log.InfoLevel WarnLevel = log.WarnLevel ErrorLevel = log.ErrorLevel FatalLevel = log.FatalLevel )
Log levels
Variables ¶
This section is empty.
Functions ¶
func SetLevelFromString ¶
SetLevelFromString sets the log level from a string Supported values: debug, info, warn, error, fatal
Types ¶
Click to show internal directories.
Click to hide internal directories.