Versions in this module Expand all Collapse all v0 v0.0.2 Oct 6, 2022 Changes in this version + func GetLogWriter() (io.Writer, error) v0.0.1 Aug 13, 2021 Changes in this version + func DPanic(args ...interface{}) + func DPanicf(template string, args ...interface{}) + func DPanicw(msg string, keysAndValues ...interface{}) + func Debug(args ...interface{}) + func Debugf(template string, args ...interface{}) + func Debugw(msg string, keysAndValues ...interface{}) + func Error(args ...interface{}) + func Errorf(template string, args ...interface{}) + func Errorw(msg string, keysAndValues ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(template string, args ...interface{}) + func Fatalw(msg string, keysAndValues ...interface{}) + func GetLogWirter() (io.Writer, error) + func Info(args ...interface{}) + func Infof(template string, args ...interface{}) + func Infow(msg string, keysAndValues ...interface{}) + func InitLogger(opt *Options, hooks ...func(LogInfo) error) + func Panic(args ...interface{}) + func Panicf(template string, args ...interface{}) + func Panicw(msg string, keysAndValues ...interface{}) + func Pure(args ...interface{}) + func Puref(msg string, args ...interface{}) + func Warn(args ...interface{}) + func Warnf(template string, args ...interface{}) + func Warnw(msg string, keysAndValues ...interface{}) + type Level int8 + const DPanicLevel + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + type LogInfo struct + File string + Level Level + Line int + LoggerName string + Message string + Stack string + Time time.Time + type Options struct + Compress bool + Filename string + Level Level + MaxAge int + MaxBackups int + MaxSize int + NotStdout bool + func GetDefault(filename string) *Options