Versions in this module Expand all Collapse all v0 v0.1.0 Nov 30, 2023 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + func Debug(ctx context.Context, msg string, kvs ...interface{}) + func Error(ctx context.Context, err error, msg string, kvs ...interface{}) + func Fatal(ctx context.Context, msg string, kvs ...interface{}) + func Info(ctx context.Context, msg string, kvs ...interface{}) + func Panic(ctx context.Context, msg string, kvs ...interface{}) + func SetCallerEnabled(enabled bool) + func SetGlobalLevel(level Level) + func SetStacktraceEnabled(enabled bool) + func ToContext(ctx context.Context, logger *Logger) context.Context + func Warn(ctx context.Context, msg string, kvs ...interface{}) + type Level int8 + func ParseLevel(levelStr string) (Level, error) + type Logger struct + func FromContext(ctx context.Context) *Logger + func New(level Level, opts ...Option) *Logger + func (l *Logger) Debug(msg string, kvs ...interface{}) + func (l *Logger) Error(err error, msg string, kvs ...interface{}) + func (l *Logger) Fatal(msg string, kvs ...interface{}) + func (l *Logger) Info(msg string, kvs ...interface{}) + func (l *Logger) Level(level Level) *Logger + func (l *Logger) Panic(msg string, kvs ...interface{}) + func (l *Logger) Warn(msg string, kvs ...interface{}) + func (l *Logger) With(kvs ...interface{}) *Logger + type Option func(*Logger) + func WithPlainText() Option + func WriteToFile(f *os.File) Option