In a typical scenario of staging or production, developers seldom have the option to use the debugger so they turn to the logging functionality to resolve system issues. https://www.srijan.net/blog/fundamentals-of-drupal-monolog-module