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 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
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 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
)
Click to show internal directories.
Click to hide internal directories.