mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-28 04:48:46 +08:00
Renames DefaultLogFile to DefaultWriter
This commit is contained in:
parent
5ee822fcee
commit
873aecefa9
@ -39,7 +39,7 @@ func ErrorLoggerT(typ uint32) HandlerFunc {
|
||||
}
|
||||
|
||||
func Logger() HandlerFunc {
|
||||
return LoggerWithFile(DefaultLogFile)
|
||||
return LoggerWithFile(DefaultWriter)
|
||||
}
|
||||
|
||||
func LoggerWithFile(out io.Writer) HandlerFunc {
|
||||
|
2
mode.go
2
mode.go
@ -24,7 +24,7 @@ const (
|
||||
testCode = iota
|
||||
)
|
||||
|
||||
var DefaultLogFile = colorable.NewColorableStdout()
|
||||
var DefaultWriter = colorable.NewColorableStdout()
|
||||
var ginMode int = debugCode
|
||||
var modeName string = DebugMode
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user