Documentation ¶
Overview ¶
*
- @Author : nopsky
- @Email : cnnopsky@gmail.com
- @Date : 2021/3/18 14:33
*
- @Author : nopsky
- @Email : cnnopsky@gmail.com
- @Date : 2020/9/27 17:56
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init()
- func NewOptionsWithConfig() options
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetLevel(level string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Logger
- type OptionFunc
- func AccessKey(accessKey string) OptionFunc
- func AccessKeySecret(accessKeySecret string) OptionFunc
- func Compress(compress bool) OptionFunc
- func Driver(driver string) OptionFunc
- func EndPoint(endpoint string) OptionFunc
- func Filename(filename string) OptionFunc
- func Format(format string) OptionFunc
- func Level(level string) OptionFunc
- func LogStore(logStore string) OptionFunc
- func MaxAge(maxAge int) OptionFunc
- func MaxBackups(maxBackups int) OptionFunc
- func MaxSize(maxSize int) OptionFunc
- func Output(output string) OptionFunc
- func Project(project string) OptionFunc
- func Topic(topic string) OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOptionsWithConfig ¶
func NewOptionsWithConfig() options
Types ¶
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Panicf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) SetLevel(level string) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Panic(args ...interface{}) Fatal(args ...interface{}) }
func NewLogger ¶
func NewLogger(optsFunc ...OptionFunc) Logger
func NewLoggerWithOption ¶
func NewLoggerWithOption(optsFunc ...OptionFunc) Logger
type OptionFunc ¶
type OptionFunc func(*options)
func AccessKey ¶
func AccessKey(accessKey string) OptionFunc
func AccessKeySecret ¶
func AccessKeySecret(accessKeySecret string) OptionFunc
func Compress ¶
func Compress(compress bool) OptionFunc
func Driver ¶
func Driver(driver string) OptionFunc
func EndPoint ¶
func EndPoint(endpoint string) OptionFunc
func Filename ¶
func Filename(filename string) OptionFunc
func Format ¶
func Format(format string) OptionFunc
func Level ¶
func Level(level string) OptionFunc
func LogStore ¶
func LogStore(logStore string) OptionFunc
func MaxAge ¶
func MaxAge(maxAge int) OptionFunc
func MaxBackups ¶
func MaxBackups(maxBackups int) OptionFunc
func MaxSize ¶
func MaxSize(maxSize int) OptionFunc
func Output ¶
func Output(output string) OptionFunc
func Project ¶
func Project(project string) OptionFunc
func Topic ¶
func Topic(topic string) OptionFunc
Click to show internal directories.
Click to hide internal directories.