Versions in this module Expand all Collapse all v1 v1.0.0 Jun 17, 2026 Changes in this version + func Criticalf(ctx context.Context, format string, a ...interface{}) + func Debugf(ctx context.Context, format string, a ...interface{}) + func Errorf(ctx context.Context, format string, a ...interface{}) + func HideCallstack() + func Infof(ctx context.Context, format string, a ...interface{}) + func SetLevelByString(level string) + func SetOutput(output io.Writer) + func ShowCallstack() + func Warnf(ctx context.Context, format string, a ...interface{}) + type Level uint32 + const CriticalLevel + const DebugLevel + const ErrorLevel + const InfoLevel + const WarnLevel + func StringToLevel(level string) Level + func (level Level) String() string + type Logger struct + Level Level + func New() *Logger + func (p *Logger) Criticalf(ctx context.Context, format string, args ...interface{}) + func (p *Logger) Debugf(ctx context.Context, format string, a ...interface{}) + func (p *Logger) Errorf(ctx context.Context, format string, args ...interface{}) + func (p *Logger) HideCallstack() *Logger + func (p *Logger) Infof(ctx context.Context, format string, a ...interface{}) + func (p *Logger) SetLevel(level Level) + func (p *Logger) SetLevelByString(level string) + func (p *Logger) SetOutput(w io.Writer) *Logger + func (p *Logger) ShowCallstack() *Logger + func (p *Logger) Warnf(ctx context.Context, format string, a ...interface{}) + func (p *Logger) WithDepth(depth int) *Logger