aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-01-20 22:03:05 +0100
committerSimon Ser <contact@emersion.fr>2020-01-20 22:03:05 +0100
commitefa08163333654f3245c272333e77565b6287b14 (patch)
tree3fb83e298c6db4b30f049a0296d27b47ac638fe7
parent01983eb7b5fc553e6ca7ed713ff1c07b0234059b (diff)
downloadalps-efa08163333654f3245c272333e77565b6287b14.tar.gz
alps-efa08163333654f3245c272333e77565b6287b14.zip
Add Server.Logger
-rw-r--r--server.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.go b/server.go
index e032d14..83a636e 100644
--- a/server.go
+++ b/server.go
@@ -228,6 +228,11 @@ func (s *Server) Reload() error {
return s.load()
}
+// Logger returns this server's logger.
+func (s *Server) Logger() echo.Logger {
+ return s.e.Logger
+}
+
// Context is the context used by HTTP handlers.
//
// Use a type assertion to get it from a echo.Context: