See also:
- How does
\Magento\Framework\Logger\Monolog::critical()
work? - How does
\Magento\Framework\Logger\Monolog::addRecord()
work? - The exceptions are loggged into the
var/log/exception.log
file - The debug messages are logged into the
var/log/debug.log
file - The default implementation of the
\Psr\Log\LoggerInterface
is\Magento\Framework\Logger\Monolog
- How to write a message to a log file?