3 ms·
I have evidently been spoiled by Python and it's abundance of batteries.
by anyoneamous 3y ago
I have evidently been spoiled by Python and it's abundance of batteries.
- justinsaccount 3y agoPython does not include a structure d logging package as part of the stdlib as far as I know. What package are you thinking does what slog does?
- anyoneamous 3y agoJust the standard "logging" - might not meet the definition of "structured logging", but at a glance it seems about as featureful as what is being added to Go right now.
- morelisp 3y agoPython has no equivalent of logger.With or other k/v pairs, which is what makes it structured logging and why it's interesting at all. Go has had unstructured logging since its early days.
- anyoneamous 3y agoI don't really follow what the benefit of the k/v thing is relative to just passing in a suitable string. I'd just assumed that the automation of "debug", "info" etc was what made it structured.