News for hackers. Stuff that matters.
Re:The Five Levels of Logging by js8 on Friday September 14, 2018 @02:42PM (#17989721)
I increasingly feel that there should be two separate logs, one for the user with the Error/Warning/Info information (what the user wanted to be done and how well it went) and the other for the developer with the Debug/Trace information (capture key information about what the program was doing, especially on the interface - what files it was looking for, what database calls it did etc.).

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.

Re:The Five Levels of Logging by exabrial on Saturday September 15, 2018 @09:10AM (#17994164)
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.