Posts

Showing posts from December, 2019

Using Logger level wisely

Logger Level : why? When it comes to logging, you have two essential and opposing forces, if you will. On the one hand, you want to capture every last detail you can because this might prove useful during troubleshooting or auditing your system. But on the other hand, all of that logging consumes resources. You can eat up disk space, overload people reading the logs, and even start to slow down your production code if you go overboard. Usually, you don't need to know everything the application did. But if he starts malfunctioning, you might want to go back to "granularity 10" to zoom in on the problem as narrowly as possible.Logging levels work this way. Often you'll only want to know if there are problems or warning conditions. But sometimes you'll really want to dial up the information for troubleshooting purposes. Common Logging Levels So what are these logging levels? Here are some common ones that you'll see, listed in order from most severe t...