Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeFile = "file" TypeMgo = "mongodb" TypeMysql = "mysql" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLogConfig ¶
type FileLogConfig interface {
GetFilePath() interface{}
}
type MongodbLog ¶
type MongodbLog struct { Config MongodbLogConfig Connection *mgo.Session }
func (*MongodbLog) DoConnection ¶
func (mongodbLog *MongodbLog) DoConnection()
type MongodbLogConfig ¶
type MysqlLog ¶
type MysqlLog struct { Config MysqlLogConfig Connection *sql.DB }
func (*MysqlLog) DoConnection ¶
func (mysqlLog *MysqlLog) DoConnection()
type MysqlLogConfig ¶
type TTLog ¶
var Logger TTLog
var MongodbLogger TTLog
var MysqlLogger TTLog
func (*TTLog) SetFileLogPath ¶
func (TTLog *TTLog) SetFileLogPath(config FileLogConfig)
*
- change file path
- if driver is file driver
Click to show internal directories.
Click to hide internal directories.