My convention for loglines is to format as: >>> print(f"Static msg: k1={v1} k2={v2}...") Very simple, but putting all dynamic data on the right makes it much easier to skim through logs. Format is also more machine-friendly; many log indexing systems will parse them properly.
3
1
35
Replying to @pradyunsg
Have used it, and am a fan in many contexts!

Apr 21, 2022 · 6:56 PM UTC

3