I'm going to build a great system. Thinking about log level naming make me wonder.
- Can I choose names, so the admin and the developers know which to use. Without using documentation?
It would be good if the log level also reflect how frequent they will show up in logs.
For example:
- INIT/SHUTDOWN - (appear once)
- FUNC_CALL - (appear frequent, for example in loops)
- TRACE - (several times in functions)
Now, a sysadmin would never turn on TRACE logging in production. He can safely turn on INIT/SHUTDOWN. And FUNC_CALL if there are low trafic in the system.
What is wrong with this design?
What names would you use to reflect the frequency?
(I know about WARN, INFO and ERROR.)