|
|
|
|
|
by timeattack
2287 days ago
|
|
> Are you joining my side? No. As a user of many programs I always find it very frustrating when some program
does not work and produce no log information whatsoever. As an engineer, I always write detailed and human-readable log entries with as
much context as possible which is split into trace, debug, warning and info
levels. With trace level enabled it's typically possible to reconstruct program
execution step-to-step, which is _invaluable_ when you need to debug some rare
problem. Even if logs are ephemeral and not persisted it's better to have logs for a run
than not having logs at all. Logging as a side effect is irrelevant if you look at your code from the
pragmatic standpoint, from which program execution transparency matters more
than some abstract elegancy. |
|
For context, I mostly program in python. I could imagine compile-time loglevel settings could address the performance, though.