|
@ -22,6 +22,13 @@ var ( |
|
|
XORMLogger *XORMLogBridge |
|
|
XORMLogger *XORMLogBridge |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// DiscardXORMLogger inits a blank logger for xorm
|
|
|
|
|
|
func DiscardXORMLogger() { |
|
|
|
|
|
XORMLogger = &XORMLogBridge{ |
|
|
|
|
|
showSQL: false, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// NewXORMLogger generate logger for xorm FIXME: configable
|
|
|
// NewXORMLogger generate logger for xorm FIXME: configable
|
|
|
func NewXORMLogger(bufferlen int64, mode, config string) { |
|
|
func NewXORMLogger(bufferlen int64, mode, config string) { |
|
|
logger := newLogger(bufferlen) |
|
|
logger := newLogger(bufferlen) |
|
|