#Logging
I was browsing through our code at Schantz were i do my daytime hacking. I found something that’s not unusual in our code base. To be fair it’s not unusual in most codebases.
The issue is logging, and more specific what log level should be used when.
So i’ve decided to give you my take on it.
Error
The error statement should only be used for actual errors. So if the system will fail catastrophically, and there is no known way to recover, a error is written.