How to create a custom logger channel in Drupal
Logging is convenient for storing information about important events in the application. You could use it to find out if any errors occurred, debug issues, and any other important information. In this article, you can find an example of creating and using it in dependency injection.