I was influenced by the levels of magazines that I and my teams used in my last two companies. I will share with you here, but remember that this bit is subjective:
- Fatal - your application goes down.
- Error. This operation or flow is malfunctioning and burning. Allows the app to continue.
- Warning. The current operation may continue, but the engineer must investigate something.
- Information. Explain what your operation does.
- Debugging - An explanation of operations that can receive quite spam (internal loops, etc.).
Now my objective question is whether there is a consistent style defined in this regard. The answer may be negative. But if there is such a standard, can you provide a URL to it?
Also note that I don't care what threshold is really set up to write somewhere useful in a deployed / production environment. Rather, my question is limited to the recommendations that those of us who write the code should use.
I put a C # tag and a Java tag in my question. We might have different guidelines in these two camps, but there are probably only cultural reasons why we will be different, not conceptual reasons.
source share