Documentation ¶
Index ¶
- Constants
- func Debugf(msg string, format string, v ...interface{})
- func Errorf(msg string, format string, v ...interface{})
- func Fatalf(msg string, format string, v ...interface{})
- func Infof(msg string, format string, v ...interface{})
- func InitLogger(logger *YLog)
- func Warnf(msg string, format string, v ...interface{})
- type Option
- type Options
- type YLog
Constants ¶
View Source
const ( DebugLevel int = iota - 1 InfoLevel WarnLevel ErrorLevel DPanicLevel PanicLevel FatalLevel )
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger(logger *YLog)
Types ¶
type Option ¶
type Option func(opts *Options)
func WithLogFile ¶
func WithMaxAge ¶
func WithMaxBackups ¶
func WithMaxSize ¶
Click to show internal directories.
Click to hide internal directories.