Documentation ¶
Index ¶
- Variables
- func Configure(config OutputConfig)
- func Debug(params ...any)
- func Debugf(message string, params ...any)
- func DumpError(_ error)
- func Error(params ...any)
- func Errorf(message string, params ...any)
- func Info(params ...any)
- func Infof(message string, params ...any)
- func SetOutput(output io.Writer)
- func Stdout() io.Writer
- type Level
- type LevelWriter
- type OutputConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorOutput = NewLevelWriter(generalOutput, ErrorLevel) DebugOutput = NewLevelWriter(generalOutput, DebugLevel) InfoOutput = NewLevelWriter(generalOutput, InfoLevel) )
View Source
var DefaultOutputConfig = OutputConfig{ LogLevel: InfoLevel, Colors: true, }
Functions ¶
func Configure ¶
func Configure(config OutputConfig)
Types ¶
type LevelWriter ¶
type LevelWriter struct {
// contains filtered or unexported fields
}
func NewLevelWriter ¶
func NewLevelWriter(output io.Writer, expected Level) *LevelWriter
func (*LevelWriter) SetLevel ¶
func (wr *LevelWriter) SetLevel(level Level)
func (*LevelWriter) SetOutput ¶
func (wr *LevelWriter) SetOutput(output io.Writer)
type OutputConfig ¶
func (*OutputConfig) UnmarshalYAML ¶
func (c *OutputConfig) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.