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
Interface (interface)
Interface logger interface
Exported Methods (5)
(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{})
As Outputs Of (2+)
func New (writer Writer , config Config ) Interface
func Interface .LogMode (LogLevel ) Interface
As Types Of (2+)
var Default
var Discard
Exported Values
const
Blue = "\x1b[34m"
Colors
const
Cyan = "\x1b[36m"
Colors
const
Green = "\x1b[32m"
Colors
const
Red = "\x1b[31m"
Colors
const
RedBold = "\x1b[31;1m"
Colors
const
Reset = "\x1b[0m"
Colors
const
White = "\x1b[37m"
Colors
const
Yellow = "\x1b[33m"
Colors
The pages are generated with Golds v0.1.6 . (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .