Documentation
¶
Index ¶
- func FromCtx(ctx context.Context) *zerolog.Logger
- func GetEchoFormat() string
- func GetLogLevel(level string) zerolog.Level
- func LogMemUsage(ctx context.Context, desc string)
- func SetLogger(ctx context.Context, logger *zerolog.Logger) context.Context
- func ZerologLogger(level string) zerolog.Logger
- type CtxKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEchoFormat ¶
func GetEchoFormat() string
GetEchoFormat returns echo format services should use.
func GetLogLevel ¶
GetLogLevel returns the zerolog Level corresponding to the string level
func LogMemUsage ¶
LogMemUsage whenever a debug is required somewhere NOTE: don't forget to call runtime.GC() to trigger the garbage collector between stats retrievals
func SetLogger ¶
SetLogger returns ctx with Logger set inside it using ctxKey
Types ¶
Source Files
¶
- echo.go
- zerolog.go
Click to show internal directories.
Click to hide internal directories.