diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-20 22:03:05 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-20 22:03:05 +0100 |
commit | efa08163333654f3245c272333e77565b6287b14 (patch) | |
tree | 3fb83e298c6db4b30f049a0296d27b47ac638fe7 | |
parent | 01983eb7b5fc553e6ca7ed713ff1c07b0234059b (diff) | |
download | alps-efa08163333654f3245c272333e77565b6287b14.tar.gz alps-efa08163333654f3245c272333e77565b6287b14.zip |
Add Server.Logger
-rw-r--r-- | server.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |