See also:
See also:
- How to log an exception?
- 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.logfile - The non-exceptional messages are loggged into the
var/log/system.logfile - The debug messages are logged into the
var/log/debug.logfile - The default implementation of the
\Psr\Log\LoggerInterfaceis\Magento\Framework\Logger\Monolog - How to write a message to a log file?