Add Server.Logger

This commit is contained in:
Simon Ser 2020-01-20 22:03:05 +01:00
parent 01983eb7b5
commit efa0816333
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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: