1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-05 00:58:47 +02:00

Logger as interface, fixed #533, fixed #349, fixed #304

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-05-31 18:29:11 -07:00
parent 3e04718bf4
commit a98843b6e5
4 changed files with 44 additions and 25 deletions

View File

@ -12,7 +12,7 @@ import (
"time"
"github.com/labstack/echo/engine"
"github.com/labstack/gommon/log"
"github.com/labstack/echo/log"
"bytes"
@ -162,7 +162,7 @@ type (
SetHandler(HandlerFunc)
// Logger returns the `Logger` instance.
Logger() *log.Logger
Logger() log.Logger
// Echo returns the `Echo` instance.
Echo() *Echo
@ -475,7 +475,7 @@ func (c *context) SetHandler(h HandlerFunc) {
c.handler = h
}
func (c *context) Logger() *log.Logger {
func (c *context) Logger() log.Logger {
return c.echo.logger
}