We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently I want to use these:
func Debug(msg string, args ...any) func Error(msg string, args ...any) func Info(msg string, args ...any) func Warn(msg string, args ...any)
which all have variants with a context:
func DebugContext(ctx context.Context, msg string, args ...any) func ErrorContext(ctx context.Context, msg string, args ...any) func InfoContext(ctx context.Context, msg string, args ...any) func WarnContext(ctx context.Context, msg string, args ...any)
but the default four are not enough for my needs. I need something beyond Debug like Trace. so I found this:
func Log(ctx context.Context, level Level, msg string, args ...any)
but its quite different. it requires a context. I would have thought the API would have looked like this instead:
func Log(level Level, msg string, args ...any) func LogContext(ctx context.Context, level Level, msg string, args ...any)
I suppose its too late to change it at this point, but maybe we could add something like this:
func LogLevel(level Level, msg string, args ...any)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Proposal Details
currently I want to use these:
which all have variants with a context:
but the default four are not enough for my needs. I need something beyond Debug like Trace. so I found this:
but its quite different. it requires a context. I would have thought the API would have looked like this instead:
I suppose its too late to change it at this point, but maybe we could add something like this:
The text was updated successfully, but these errors were encountered: