blog.8-p.info

Dave Cheney has written that already;

Let’s start with the easiest one. Nobody needs a warning log level.

And I do agree with him. Don’t log warnings.

Warnings show your uncertainty. Uncertainty regarding the behavior of your system. This state could be bad, or maybe not.

Instead of sharing your feeling by logging that, you should ask your team and figure out whether this is really bad or not. Assuming your system is running 247. Log messages should be written for your teammate who is figuring out a production issue at 2am.

Sharing your uncertainty with your teammate is totally fine, but don’t do that in midnight. Do that in work hours.