Documentation ¶
Index ¶
- Variables
- func Close()
- func Concurrency(cnt int)
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Register(builder Builder)
- func SetBuilder(builder Builder)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func WithContext(ctx context.Context, l Logger) context.Context
- type Builder
- type Level
- type Logger
- type Option
- type Options
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LevelAll xlog.Level = xlog.LevelAll LevelDebug xlog.Level = xlog.LevelDebug LevelInfo xlog.Level = xlog.LevelInfo LevelWarn xlog.Level = xlog.LevelWarn LevelError xlog.Level = xlog.LevelError LevelPanic xlog.Level = xlog.LevelPanic LevelFatal xlog.Level = xlog.LevelFatal LevelOff xlog.Level = xlog.LevelOff )
View Source
var ( WithName = xlog.WithName WithSid = xlog.WithSid WithSrvType = xlog.WithSrvType WithField = xlog.WithField WithFields = xlog.WithFields )
Functions ¶
func Concurrency ¶
func Concurrency(cnt int)
Types ¶
type Builder ¶
func GetBuilder ¶ added in v0.1.31
type Logger ¶
type Logger interface { Name() string Log(level Level, args ...interface{}) Logf(level Level, format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Debug(args ...interface{}) Debugf(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Warn(v ...interface{}) Warnf(format string, v ...interface{}) Write(p []byte) (n int, err error) Close() }
var (
DefaultLogger Logger
)
type Options ¶ added in v0.1.13
type ServerOption ¶ added in v0.1.13
type ServerOption func(opt *Options)
func Excludes ¶ added in v0.1.13
func Excludes(excludes ...string) ServerOption
func WithRequest ¶ added in v0.1.13
func WithRequest() ServerOption
func WithResponse ¶ added in v0.1.13
func WithResponse() ServerOption
Click to show internal directories.
Click to hide internal directories.