Documentation ¶
Index ¶
- type Config
- type GormLogger
- func (g *GormLogger) Error(ctx context.Context, key string, val ...interface{})
- func (g *GormLogger) Info(context.Context, string, ...interface{})
- func (g *GormLogger) LogMode(logger.LogLevel) logger.Interface
- func (g *GormLogger) Print(v ...interface{})
- func (g *GormLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (g *GormLogger) Warn(ctx context.Context, key string, val ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Driver string Host string User string Password string Database string Debug bool Logger Logger }
Config 数据库配置项
host: 127.0.0.1:3306
user: root password: 123456 database: supervision
type GormLogger ¶ added in v1.0.3
type GormLogger struct {
// contains filtered or unexported fields
}
func (*GormLogger) Error ¶ added in v1.0.8
func (g *GormLogger) Error(ctx context.Context, key string, val ...interface{})
Error implements logger.Interface.
func (*GormLogger) Info ¶ added in v1.0.8
func (g *GormLogger) Info(context.Context, string, ...interface{})
Info implements logger.Interface.
func (*GormLogger) LogMode ¶ added in v1.0.8
func (g *GormLogger) LogMode(logger.LogLevel) logger.Interface
LogMode implements logger.Interface.
func (*GormLogger) Print ¶ added in v1.0.3
func (g *GormLogger) Print(v ...interface{})
Click to show internal directories.
Click to hide internal directories.