Currently zerolog is used for all logging to JSON format except for panic() calls which get output as non-JSON. This is a source of inconsistency in the logging.
Proposed Solution
zerolog has its own .Panic() function which does everything that panic() does and outputs the zerolog formatted JSON log line too.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Problem Definition
Currently
zerolog
is used for all logging to JSON format except forpanic()
calls which get output as non-JSON. This is a source of inconsistency in the logging.Proposed Solution
zerolog
has its own.Panic()
function which does everything thatpanic()
does and outputs thezerolog
formatted JSON log line too.Definition of Done
No more
panic()
statements.