Renames LoggerInFile() to LoggerWithFile()
This commit is contained in:
parent
dcdf7b92f4
commit
3fce8efcc6
@ -39,10 +39,10 @@ func ErrorLoggerT(typ uint32) HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Logger() HandlerFunc {
|
func Logger() HandlerFunc {
|
||||||
return LoggerInFile(DefaultLogFile)
|
return LoggerWithFile(DefaultLogFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoggerInFile(out io.Writer) HandlerFunc {
|
func LoggerWithFile(out io.Writer) HandlerFunc {
|
||||||
return func(c *Context) {
|
return func(c *Context) {
|
||||||
// Start timer
|
// Start timer
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
Loading…
Reference in New Issue
Block a user