Documentation
¶
Index ¶
- Constants
- func Log(next echo.HandlerFunc) echo.HandlerFunc
- func NewEchoLogger(logger *logrus.Entry) echo.Logger
- type Logger
- func (c *Logger) Debug(i ...any)
- func (c *Logger) Debugf(format string, args ...any)
- func (c *Logger) Debugj(j log.JSON)
- func (c *Logger) Error(i ...any)
- func (c *Logger) Errorf(format string, args ...any)
- func (c *Logger) Errorj(j log.JSON)
- func (c *Logger) Fatal(i ...any)
- func (c *Logger) Fatalf(format string, args ...any)
- func (c *Logger) Fatalj(j log.JSON)
- func (c *Logger) Info(i ...any)
- func (c *Logger) Infof(format string, args ...any)
- func (c *Logger) Infoj(j log.JSON)
- func (c *Logger) Level() log.Lvl
- func (c *Logger) Output() io.Writer
- func (c *Logger) Panic(i ...any)
- func (c *Logger) Panicf(format string, args ...any)
- func (c *Logger) Panicj(j log.JSON)
- func (c *Logger) Prefix() string
- func (c *Logger) Print(i ...any)
- func (c *Logger) Printf(format string, args ...any)
- func (c *Logger) Printj(j log.JSON)
- func (c *Logger) SetHeader(h string)
- func (c *Logger) SetLevel(v log.Lvl)
- func (c *Logger) SetOutput(w io.Writer)
- func (c *Logger) SetPrefix(p string)
- func (c *Logger) Warn(i ...any)
- func (c *Logger) Warnf(format string, args ...any)
- func (c *Logger) Warnj(j log.JSON)
Constants ¶
View Source
const ( // HeaderUserID is the HTTP header where the user ID is stored. HeaderUserID = "X-ID" // HeaderTenantID is the HTTP header where the tenant ID is stored. HeaderTenantID = "X-Tenant-ID" )
Variables ¶
This section is empty.
Functions ¶
func Log ¶
func Log(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
type Logger ¶ added in v0.21.0
type Logger struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.