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 ¶ added in v0.0.21
func NewLoggerWithOption(optsFunc ...OptionFunc) Logger
type OptionFunc ¶
type OptionFunc func(*options)
func AccessKey ¶ added in v0.0.21
func AccessKey(accessKey string) OptionFunc
func AccessKeySecret ¶ added in v0.0.21
func AccessKeySecret(accessKeySecret string) OptionFunc
func Compress ¶
func Compress(compress bool) OptionFunc
func Driver ¶
func Driver(driver string) OptionFunc
func EndPoint ¶ added in v0.0.21
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 ¶ added in v0.0.21
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 ¶ added in v0.0.21
func Project(project string) OptionFunc
func Topic ¶ added in v0.0.21
func Topic(topic string) OptionFunc
Directories ¶
Path | Synopsis |
---|---|
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2021/12/13 16:22
|
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2021/12/13 16:22 |
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:58 * * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:57
|
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:58 * * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:57 |
Click to show internal directories.
Click to hide internal directories.