Logs in Magento 2 consist of system information records for analysis in the future. One of the most common examples of such events is the error log.
Sometimes we need to store configuration data as a table with the ability to add new roles. This functionality already exists in Magento 2. Let's look in detail.