MCPcopy
hub / github.com/labstack/echo / Logger

Method Logger

context.go:742–747  ·  view source on GitHub ↗

Logger returns logger in Context

()

Source from the content-addressed store, hash-verified

740
741// Logger returns logger in Context
742func (c *Context) Logger() *slog.Logger {
743 if c.logger != nil {
744 return c.logger
745 }
746 return c.echo.Logger
747}
748
749// SetLogger sets logger in Context
750func (c *Context) SetLogger(logger *slog.Logger) {

Callers 3

TestLoggerFunction · 0.95
DefaultHTTPErrorHandlerFunction · 0.80
RequestLoggerFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestLoggerFunction · 0.76