Documentation ¶
Index ¶
- Variables
- func ERROR(str string)
- func INFO(str string)
- func InitLogger(applicationName string)
- type GormLogger
- func (l GormLogger) Error(ctx context.Context, str string, args ...interface{})
- func (l GormLogger) Info(ctx context.Context, str string, args ...interface{})
- func (l *GormLogger) LogMode(level gormlogger.LogLevel) gormlogger.Interface
- func (l GormLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l GormLogger) Warn(ctx context.Context, str string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logger.Logger
Functions ¶
func InitLogger ¶
func InitLogger(applicationName string)
Types ¶
type GormLogger ¶
type GormLogger struct {
LogLevel gormlogger.LogLevel
}
func GetGormLogger ¶
func GetGormLogger() *GormLogger
func (GormLogger) Error ¶
func (l GormLogger) Error(ctx context.Context, str string, args ...interface{})
Error prints error messages
func (GormLogger) Info ¶
func (l GormLogger) Info(ctx context.Context, str string, args ...interface{})
Info prints info
func (*GormLogger) LogMode ¶
func (l *GormLogger) LogMode(level gormlogger.LogLevel) gormlogger.Interface
LogMode set log mode
Click to show internal directories.
Click to hide internal directories.