Documentation ¶
Index ¶
- Constants
- Variables
- func AsynqLogLevel(level string) asynq.LogLevel
- func Debug(format string, a ...any)
- func Error(err error)
- func Fatal(format string, a ...any)
- func GetLogger() zerolog.Logger
- func Info(format string, a ...any)
- func Init(fileLogEnabled bool)
- func Panic(format string, a ...any)
- func SetLevel(level string)
- func Warn(format string, a ...any)
- type GormLogger
- func (g *GormLogger) Error(_ context.Context, s string, i ...interface{})
- func (g *GormLogger) Info(_ context.Context, s string, i ...interface{})
- func (g *GormLogger) LogMode(level logger.LogLevel) logger.Interface
- func (g *GormLogger) Trace(_ context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), ...)
- func (g *GormLogger) Warn(_ context.Context, s string, i ...interface{})
Constants ¶
View Source
const ( DebugLevel = "debug" InfoLevel = "info" WarnLevel = "warn" ErrorLevel = "error" FatalLevel = "fatal" PanicLevel = "panic" )
Variables ¶
View Source
var AsynqLogger = &asynqLogger{}
View Source
var SlackLogger = &slackLogger{}
View Source
var WatermillLogger = &watermillLogger{}
Functions ¶
func AsynqLogLevel ¶
Types ¶
type GormLogger ¶
type GormLogger struct {
// contains filtered or unexported fields
}
func NewGormLogger ¶
func NewGormLogger(level string) *GormLogger
func (*GormLogger) Error ¶
func (g *GormLogger) Error(_ context.Context, s string, i ...interface{})
Click to show internal directories.
Click to hide internal directories.