Update dependency monolog/monolog to version 2.x
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3032946. -->
Reported by: [esolitos](https://www.drupal.org/user/1567500)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The current <code>monolog/monolog</code> library version used by the module is locked at version 1.x, however the 2.x version contains handlers that aren't back-ported and newer version of dependencies, for example a ElasticSearch handler which is what lead me to test the 2.x version.</p>
<p>From version 1.x to 2.x there's very few changes when it comes to the compatibility with this module, and they're all regarding php7 support.</p>
<p>You can see all that is required here:</p>
<p>HTML Format: <a href="https://github.com/ramsalt/drupal-module-monolog/compare/8.x-2.x">https://github.com/ramsalt/drupal-module-monolog/compare/8.x-2.x</a><br>
Diff format: <a href="https://github.com/ramsalt/drupal-module-monolog/compare/8.x-2.x.diff">https://github.com/ramsalt/drupal-module-monolog/compare/8.x-2.x.diff</a></p>
<p><small><em><strong>Note:</strong> You can ignore changes to <code>composer.json</code> as they're just required for me to use the updated package, since <code>composer-patches/issues</code> doesn't work with changes on composer.json</em></small></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Upgrade library dependency to version <code>^2.0.0@beta</code>.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Update library.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>N/A</p>
<h3 id="summary-api-changes">API changes</h3>
<p>N/A</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>N/A</p>
<h3 id="summary-release-notes">Release notes snippet</h3>
<p>TBD</p>
issue