Documentation ¶
Index ¶
- func Debug(msg string)
- func Debugf(msg string, v ...any)
- func Error(msg error)
- func Errorf(msg string, v ...any)
- func Eventloop()
- func Fatal(msg error)
- func Fatalf(msg string, v ...any)
- func Get() yocki.Ycho
- func Info(msg string)
- func Infof(msg string, v ...any)
- func NewTLog(conf YchoOpt) (*tlog, error)
- func NewZLog(conf YchoOpt) (*zlog, error)
- func Print(msg string)
- func Printf(format string, a ...any)
- func Println(msg string)
- func Progress(total int64, r io.Reader) io.Reader
- func Set(y yocki.Ycho)
- func Warn(msg error)
- func Warnf(msg string, v ...any)
- type Vlog
- func (v *Vlog) Debug(msg string)
- func (v *Vlog) Debugf(msg string, a ...any)
- func (v *Vlog) Error(msg string)
- func (v *Vlog) Errorf(msg string, a ...any)
- func (v *Vlog) Eventloop()
- func (v *Vlog) Fatal(msg string)
- func (v *Vlog) Fatalf(msg string, a ...any)
- func (v *Vlog) Info(msg string)
- func (v *Vlog) Infof(msg string, a ...any)
- func (v *Vlog) Print(msg string)
- func (v *Vlog) Progress(total int64, r io.Reader) io.Writer
- func (v *Vlog) Warn(msg string)
- func (v *Vlog) Warnf(msg string, a ...any)
- type YchoOpt
- type YchoOption
- type Ylog
- func (y *Ylog) Debug(msg string)
- func (y *Ylog) Debugf(msg string, a ...any)
- func (y *Ylog) Error(msg string)
- func (y *Ylog) Errorf(msg string, a ...any)
- func (y *Ylog) Fatal(msg string)
- func (y *Ylog) Fatalf(msg string, a ...any)
- func (y *Ylog) Info(msg string)
- func (y *Ylog) Infof(msg string, a ...any)
- func (y *Ylog) Warn(msg string)
- func (y *Ylog) Warnf(msg string, a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type YchoOpt ¶
type YchoOpt struct { Level string `yaml:"level"` Format string `yaml:"format"` Path string `yaml:"path"` FileName string `yaml:"filename"` FileMaxSize int `yaml:"fileMaxSize"` FileMaxBackups int `yaml:"fileMaxBackups"` MaxAge int `yaml:"maxAge"` Compress bool `yaml:"compress"` Stdout bool `yaml:"stdout"` Caller bool `yaml:"caller"` TimeFormat string `yaml:"timeFormat"` }
YchoOpt indicates the configuration of ycho. It is stored in the yockConf, loaded via init. You can set it using yock conf command.
type YchoOption ¶
Click to show internal directories.
Click to hide internal directories.