From 1819dda80ab0963da3ec38f484264c1cab543786 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 10 Mar 2016 17:38:52 +0800 Subject: [PATCH] Export LogWriter interface --- logger.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/logger.go b/logger.go index f4c79ead..2c4ccbbc 100644 --- a/logger.go +++ b/logger.go @@ -20,13 +20,14 @@ type logger interface { Print(v ...interface{}) } -type logWriter interface { +// LogWriter log writer interface +type LogWriter interface { Println(v ...interface{}) } // Logger default logger type Logger struct { - logWriter + LogWriter } // Print format & print log