Adds default file log option

This commit is contained in:
Manu Mtz-Almeida
2015-04-07 18:37:17 +02:00
parent 0b7dce4bc9
commit 6c788a4300
2 changed files with 11 additions and 7 deletions
+3
View File
@@ -7,6 +7,8 @@ package gin
import (
"log"
"os"
"github.com/mattn/go-colorable"
)
const GIN_MODE = "GIN_MODE"
@@ -22,6 +24,7 @@ const (
testCode = iota
)
var DefaultLogFile = colorable.NewColorableStdout()
var ginMode int = debugCode
var modeName string = DebugMode