Export LogWriter interface

This commit is contained in:
Jinzhu 2016-03-10 17:38:52 +08:00
parent 7c43d9fc36
commit 1819dda80a
1 changed files with 3 additions and 2 deletions

View File

@ -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