Documentation ¶
Overview ¶
- @Author: reel
- @Date: 2023-08-14 20:39:55
- @LastEditors: reel
<<<<<<< HEAD
- @LastEditTime: 2023-08-16 21:28:17
=======
- @LastEditTime: 2024-01-14 17:38:07
>>>>>>> develop
@Description: 适用于gorm的logger
@Author: reel
@Date: 2023-06-04 22:37:35
@LastEditors: reel
@LastEditTime: 2023-08-15 22:53:03
@Description: 请填写简介
@Author: reel
@Date: 2023-05-11 22:27:38
@LastEditors: reel
@LastEditTime: 2023-08-14 21:13:47
@Description: 请填写简介
Index ¶
- Variables
- func Close()
- func Details(mags map[string]interface{}) infoFunc
- func E(err error) infoFunc
- func EV(err error) infoFunc
- func F(key string, value interface{}) infoFunc
- func Init(optF ...optFunc) (err error)
- func NewGormLogger(optF ...optFunc) (*gormLogger, error)
- func SetDataPath(dataPath string) optFunc
- func SetLevel(level logrus.Level) optFunc
- func SetLogMaxage(logMaxage time.Duration) optFunc
- func SetLogName(logName string) optFunc
- func SetLogPath(logPath string) optFunc
- func SetLogRotationTime(logRotationTime time.Duration) optFunc
- func SetLogSlowThreshold(t time.Duration) optFunc
- func SetTimestampFormat(timestampFormat string) optFunc
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Sys Logger DB *gormLogger APP Logger )
Functions ¶
func NewGormLogger ¶
func NewGormLogger(optF ...optFunc) (*gormLogger, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.