Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormLogger ¶
GormLogger 面向 Gorm 的 Logger
func New ¶
func New(host, name string) *GormLogger
New Create new logger with custom database name and host Defaults to use logrus.INFO level.
func NewWithLevel ¶
func NewWithLevel(host, name string, level log.Level) *GormLogger
NewWithLevel Create new logger with custom database name, host and logurs.Level
func NewWithLogger ¶
NewWithLogger Create new logger with custom database name, host and logger
Click to show internal directories.
Click to hide internal directories.