Problem
Context(ctx) panics when the logger is not stored in the context, which can crash libraries that rely on fallback behaviour.
Proposed Behaviour
Return DefaultLogger() and an error (or boolean) instead of panicking, or provide a helper MustContext() that panics while Context() is safe.
Tasks:
Problem
Context(ctx) panics when the logger is not stored in the context, which can crash libraries that rely on fallback behaviour.
Proposed Behaviour
Return DefaultLogger() and an error (or boolean) instead of panicking, or provide a helper MustContext() that panics while Context() is safe.
Tasks: