Documentation ¶
Index ¶
- func GinLogger() gin.HandlerFunc
- func NewGORMLogger(conf gormlog.Config) gormlog.Interface
- func SetLogLevel(logLevel string)
- func SetRootPath(path string)
- type CtxLogger
- type GORMLogger
- func (l *GORMLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (l *GORMLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (l *GORMLogger) LogMode(logLevel gormlog.LogLevel) gormlog.Interface
- func (l *GORMLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *GORMLogger) Warn(ctx context.Context, msg string, data ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinLogger ¶
func GinLogger() gin.HandlerFunc
func SetLogLevel ¶
func SetLogLevel(logLevel string)
func SetRootPath ¶ added in v0.1.3
func SetRootPath(path string)
Types ¶
type CtxLogger ¶ added in v0.1.3
func NewLoggerWithCallerLevel ¶ added in v0.1.3
type GORMLogger ¶
func (*GORMLogger) Error ¶
func (l *GORMLogger) Error(ctx context.Context, msg string, data ...interface{})
func (*GORMLogger) Info ¶
func (l *GORMLogger) Info(ctx context.Context, msg string, data ...interface{})
func (*GORMLogger) LogMode ¶
func (l *GORMLogger) LogMode(logLevel gormlog.LogLevel) gormlog.Interface
type Logger ¶ added in v0.1.3
type Logger interface { Debug(msg string, keysAndValues ...interface{}) Warn(msg string, keysAndValues ...interface{}) Info(msg string, keysAndValues ...interface{}) Error(msg string, keysAndValues ...interface{}) Fatal(msg string, keysAndValues ...interface{}) Trace(msg string, keysAndValues ...interface{}) With(keysAndValues ...interface{}) Logger }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.