An "audit log" or "branch log", what business decisions were made, and a "debug log", what params drove said decision
Re:The Five Levels of Logging
by franciscop on Saturday September 15, 2018 @12:27AM
(#17992990)
This is a very common pattern on Node.js... look into the package debug, it's structured to work as a dev help and can be enabled/disabled per part. So you only enable it for the bit you are debugging and unrelated info gets filtered out.
I always get complaints from users that there is too much useless stuff in the logs through which they need to go. I also think that the developer log should be structured differently, possibly to be easily read by some automation.