aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: