package logger

Import Path
	gorm.io/gorm/logger (on go.dev)

Dependency Relation
	imports 13 packages, and imported by 3 packages

Involved Source Files
	    logger.go
	    sql.go

Exported Type Names

type Config (struct) Colorful bool LogLevel LogLevel SlowThreshold time.Duration func New(writer Writer, config Config) Interface
type Interface (interface) Interface logger interface (T) Error(context.Context, string, ...interface{}) (T) Info(context.Context, string, ...interface{}) (T) LogMode(LogLevel) Interface (T) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) (T) Warn(context.Context, string, ...interface{}) func New(writer Writer, config Config) Interface func Interface.LogMode(LogLevel) Interface var Default var Discard
type LogLevel int LogLevel func Interface.LogMode(LogLevel) Interface const Error const Info const Silent const Warn
type Writer (interface) Writer log writer interface (T) Printf(string, ...interface{}) log.(*Logger) func New(writer Writer, config Config) Interface
Exported Values
const Blue = "\x1b[34m" Colors
const BlueBold = "\x1b[34;1m" Colors
const Cyan = "\x1b[36m" Colors
const Error LogLevel = 2
func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string
const Green = "\x1b[32m" Colors
const Info LogLevel = 4
const Magenta = "\x1b[35m" Colors
const MagentaBold = "\x1b[35;1m" Colors
func New(writer Writer, config Config) Interface
const Red = "\x1b[31m" Colors
const RedBold = "\x1b[31;1m" Colors
const Reset = "\x1b[0m" Colors
const Silent LogLevel = 1
const Warn LogLevel = 3
const White = "\x1b[37m" Colors
const Yellow = "\x1b[33m" Colors
const YellowBold = "\x1b[33;1m" Colors