Documentation ¶
Overview ¶
* @Author: Wangjun * @Date: 2023-06-29 08:55:27 * @LastEditTime: 2023-09-21 13:25:45 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\cklog\cklog.go * hnxr
Index ¶
- func Close()
- func Log(level int, traceID string, msg string, UsedTime ...int32)
- func SetDB(db *gorm.DB)
- func SetDsn(dsn string) (err error)
- func Setup(dsn ...string)
- type CkLog
- func (m *CkLog) Close()
- func (m *CkLog) Insert(sql string, rows [][]interface{}) (count int, err error)
- func (m *CkLog) InsertObjects(rows interface{}) (count int, err error)
- func (m *CkLog) SetDB(db *gorm.DB)
- func (m *CkLog) SetDsn(dsn string) (err error)
- func (m *CkLog) Setup(dsn ...string)
- func (m *CkLog) WriteString(level int, traceID string, msg string, UsedTime ...int32)
- type Logs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
*
- @description: 写入日志
- @param {int} level
- @param {string} traceID
- @param {string} msg
- @return {*}
Types ¶
Click to show internal directories.
Click to hide internal directories.