I need to add some action, when application runs one of Monolog\Logger methods (info, error, warning etc.) and do some custom code.
for example:
$this->logger->error('Some error');
should do error output - basic action for Monolog\Logger, but after that send error text via API ...