How does \Magento\Framework\Logger\Monolog::addRecord() work?

Preliminary context: How does \Magento\Framework\Logger\Monolog::critical() work?

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Monolog.php#L13-L25



https://github.com/magento/magento2/blob/8fd3e8/app/etc/di.xml#L173-L181






https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/System.php#L12-L12

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/Base.php#L14-L14



https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/System.php#L43-L59


https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/System.php#L24-L27

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/System.php#L31-L31

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/System.php#L36-L36

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/System.php#L39-L39


https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/Exception.php#L7-L22



https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Logger/Handler/Base.php#L47-L61


See also: