forked from mirror/gorm
Export LogWriter interface
This commit is contained in:
parent
7c43d9fc36
commit
1819dda80a
|
@ -20,13 +20,14 @@ type logger interface {
|
||||||
Print(v ...interface{})
|
Print(v ...interface{})
|
||||||
}
|
}
|
||||||
|
|
||||||
type logWriter interface {
|
// LogWriter log writer interface
|
||||||
|
type LogWriter interface {
|
||||||
Println(v ...interface{})
|
Println(v ...interface{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Logger default logger
|
// Logger default logger
|
||||||
type Logger struct {
|
type Logger struct {
|
||||||
logWriter
|
LogWriter
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print format & print log
|
// Print format & print log
|
||||||
|
|
Loading…
Reference in New Issue