Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debug(a ...interface{})
- func (l *Logger) Debugf(format string, a ...interface{})
- func (l *Logger) Error(a ...interface{})
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) Fatal(a ...interface{})
- func (l *Logger) Fatalf(format string, a ...interface{})
- func (l *Logger) Info(a ...interface{})
- func (l *Logger) Infof(format string, a ...interface{})
- func (l *Logger) Panic(a ...interface{})
- func (l *Logger) Panicf(format string, a ...interface{})
- func (l *Logger) Producer() *producer.Producer
- func (l *Logger) Warn(a ...interface{})
- func (l *Logger) Warnf(format string, a ...interface{})
- type Option
- func WithAccessKeyID(accessKeyID string) Option
- func WithAccessKeySecret(accessKeySecret string) Option
- func WithCallerFullPath(enable bool) Option
- func WithCallerSkip(skip int) Option
- func WithEndpoint(endpoint string) Option
- func WithLevel(level log.Level) Option
- func WithLogstore(logstore string) Option
- func WithProject(project string) Option
- func WithSource(source string) Option
- func WithStackLevel(level log.Level) Option
- func WithStdout(enable bool) Option
- func WithSyncout(enable bool) Option
- func WithTimeFormat(format string) Option
- func WithTopic(topic string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
func WithAccessKeySecret ¶
WithAccessKeySecret 设置访问密钥密码
func WithCallerFullPath ¶
WithCallerFullPath 设置是否启用调用文件全路径
Click to show internal directories.
Click to hide internal directories.