Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormWriter ¶
type GormWriter struct {
// contains filtered or unexported fields
}
func NewGormWriter ¶
func NewGormWriter(opts ...Option) *GormWriter
func (*GormWriter) FileWithLineNum ¶
func (w *GormWriter) FileWithLineNum() string
拦截打印行号,过滤gen和gorm的行号 FileWithLineNum return the file name and line number of the current file
func (*GormWriter) Printf ¶
func (w *GormWriter) Printf(message string, data ...interface{})
Printf 格式化打印日志 message:%s \n[%.3fms] [rows:%v] %s data:[line,time,rows,sql]
Click to show internal directories.
Click to hide internal directories.