Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline Message Support #14

Open
roma-glushko opened this issue Mar 27, 2020 · 0 comments
Open

Multiline Message Support #14

roma-glushko opened this issue Mar 27, 2020 · 0 comments

Comments

@roma-glushko
Copy link

Monolog allows writing multiline messages (with tracelog, for example). Here is an example:

[2020-03-25 16:27:13] report.ERROR: AMQP topology installation failed: stream_socket_client(): unable to connect to tcp://127.0.0.1:5672 (Connection refused)
#0 [internal function]: PhpAmqpLib\Wire\IO\StreamIO->error_handler(2, 'stream_socket_c...', '/home/dev/sites...', 141, Array)
#1 /home/dev/sites/project/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php(141): stream_socket_client('tcp://127.0.0.1...', 111, 'Connection refu...', 3, 4, Resource id #21711)
#2 /home/dev/sites/project/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(205): PhpAmqpLib\Wire\IO\StreamIO->connect()
#3 /home/dev/sites/project/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(189): PhpAmqpLib\Connection\AbstractConnection->connect()
#4 /home/dev/sites/project/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(60): PhpAmqpLib\Connection\AbstractConnection->__construct('rabbitmq', 'gabfey5qnqkCSze...', '/', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0, 3)
#5 /home/dev/sites/project/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(116): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'rabbitmq', 'gabfey5qnqkCSze...', '/', false, 'AMQPLAIN', NULL, 'en_US', 3, 3, NULL, false, 0)
#6 /home/dev/sites/project/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('PhpAmqpLib\\Conn...', Array)
#7 /home/dev/sites/project/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('PhpAmqpLib\\Conn...', Array)
#8 /home/dev/sites/project/vendor/magento/framework-amqp/Connection/Factory.php(43): Magento\Framework\ObjectManager\ObjectManager->create('PhpAmqpLib\\Conn...', Array)
#9 /home/dev/sites/project/vendor/magento/framework-amqp/Config.php(156): Magento\Framework\Amqp\Connection\Factory->create(Object(Magento\Framework\Amqp\Connection\FactoryOptions))
#10 /home/dev/sites/project/vendor/magento/framework-amqp/Config.php(169): Magento\Framework\Amqp\Config->createConnection()
#11 /home/dev/sites/project/vendor/magento/framework-amqp/TopologyInstaller.php(86): Magento\Framework\Amqp\Config->getChannel()
#12 /home/dev/sites/project/vendor/magento/module-amqp/Setup/Recurring.php(36): Magento\Framework\Amqp\TopologyInstaller->install()
#13 /home/dev/sites/project/setup/src/Magento/Setup/Model/Installer.php(1025): Magento\Amqp\Setup\Recurring->install(Object(Magento\Setup\Module\Setup), Object(Magento\Setup\Model\ModuleContext))
#14 /home/dev/sites/project/setup/src/Magento/Setup/Model/Installer.php(831): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema', Array)
#15 /home/dev/sites/project/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php(122): Magento\Setup\Model\Installer->installSchema(Array)
#16 /home/dev/sites/project/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\UpgradeCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /home/dev/sites/project/vendor/symfony/console/Application.php(893): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /home/dev/sites/project/vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\UpgradeCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /home/dev/sites/project/vendor/magento/framework/Console/Cli.php(105): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /home/dev/sites/project/vendor/symfony/console/Application.php(145): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /home/dev/sites/project/bin/magento(23): Symfony\Component\Console\Application->run()
#22 {main} [] []

Currently, it's not possible to parse such records. Would be cool to support such records

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant