WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Bump monolog/monolog from 1.24.0 to 2.0.0 #117

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps monolog/monolog from 1.24.0 to 2.0.0.

Release notes *Sourced from [monolog/monolog's releases](https://github.com/Seldaek/monolog/releases).* > ## 2.0.0 > This changelog includes 2.0.0-beta* changelogs too, to see changes since beta2 check the [CHANGELOG.md](https://github.com/Seldaek/monolog/blob/HEAD/CHANGELOG.md#200-2019-08-30) file. > > * BC Break: This is a major release, see [https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md](https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md) for details if you are coming from a 1.x release > * BC Break: PHP 7.2 is now the minimum required PHP version. > * BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see [https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md](https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md) for details > * BC Break: Monolog\Logger: The record timezone is now set per Logger instance and not statically anymore > * BC Break: Monolog\Logger: Removed non-PSR-3 methods to add records, all the `add*` (e.g. `addWarning`) methods as well as `emerg`, `crit`, `err` and `warn` > * BC Break: Monolog\Logger: methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types > * BC Break: Monolog\Logger: There is no more default handler configured on empty Logger instances > * BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters > * BC Break: ElasticSearchHandler renamed to ElasticaHandler > * BC Break: Various handler-specific breaks, see [https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md](https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md) for details > * Added scalar type hints and return hints in all the places it was possible. Switched strict_types on for more reliability. > * Added DateTimeImmutable support, all record datetime are now immutable, and will toString/json serialize with the correct date format, including microseconds (unless disabled) > * Added timezone and microseconds to the default date format > * Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it > * Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad) > * Added TelegramBotHandler to log records to a [Telegram](https://core.telegram.org/bots/api) bot account > * Added SendGridHandler to use the SendGrid API to send emails > * Added NoopHandler which is similar to the NullHandle but does not prevent the bubbling of log records to handlers further down the configuration, useful for temporarily disabling a handler in configuration files > * Added ProcessHandler to write log output to the STDIN of a given process > * Added LogmaticHandler to use the Logmatic.io API to store log records > * Added SqsHandler to send log records to an AWS SQS queue > * Added ElasticsearchHandler to send records via the official ES library. Elastica users should now use ElasticaHandler instead of ElasticSearchHandler > * Added HostnameProcessor that adds the machine's hostname to log records > * Added a `$dateFormat` option to the PsrLogMessageProcessor which lets you format DateTime instances nicely > * Added support for the PHP 7.x `mongodb` extension in the MongoDBHandler > * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler > * Added support for JsonSerializable when normalizing exceptions > * Added SoapFault details to formatted exceptions > * Improved performance of LogglyHandler when sending multiple logs in a single request > * Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half > * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases > * Fixed date timezone handling in SyslogUdpHandler > * Fixed DeduplicationHandler silently failing to start when file could not be opened > * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records > * Fixed GelfFormatter losing some data when one attachment was too long > * Fixed issue in SignalHandler restarting syscalls functionality > * Fixed many minor issues in various handlers, and probably added a few regressions too > > ## 2.0.0-beta2 > * BC Break: This is a major release, see [https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md](https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md) and the [2.0.0-beta1 changelog](https://github.com/Seldaek/monolog/releases/tag/2.0.0-beta1) for details if you are coming from a 1.x release > * BC Break: PHP 7.2 is now the minimum required PHP version. > * BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see [https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md](https://github.com/Seldaek/monolog/blob/HEAD/UPGRADE.md) for details > * Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad) > * Added TelegramBotHandler to log records to a [Telegram](https://core.telegram.org/bots/api) bot account > * Added support for JsonSerializable when normalizing exceptions > * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler > * Added SoapFault details to formatted exceptions > ... (truncated)
Changelog *Sourced from [monolog/monolog's changelog](https://github.com/Seldaek/monolog/blob/master/CHANGELOG.md).* > ### 2.0.0 (2019-08-30) > > * BC Break: This is a major release, see [https://github.com/Seldaek/monolog/blob/master/UPGRADE.md](https://github.com/Seldaek/monolog/blob/master/UPGRADE.md) for details if you are coming from a 1.x release > * BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types > * Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it > * Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half > * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases > * Fixed date timezone handling in SyslogUdpHandler > > ### 2.0.0-beta2 (2019-07-06) > > * BC Break: This is a major release, see [https://github.com/Seldaek/monolog/blob/master/UPGRADE.md](https://github.com/Seldaek/monolog/blob/master/UPGRADE.md) for details if you are coming from a 1.x release > * BC Break: PHP 7.2 is now the minimum required PHP version. > * BC Break: Removed SlackbotHandler, RavenHandler and HipChatHandler, see [https://github.com/Seldaek/monolog/blob/master/UPGRADE.md](https://github.com/Seldaek/monolog/blob/master/UPGRADE.md) for details > * Added OverflowHandler which will only flush log records to its nested handler when reaching a certain amount of logs (i.e. only pass through when things go really bad) > * Added TelegramBotHandler to log records to a [Telegram](https://core.telegram.org/bots/api) bot account > * Added support for JsonSerializable when normalizing exceptions > * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler > * Added SoapFault details to formatted exceptions > * Fixed DeduplicationHandler silently failing to start when file could not be opened > * Fixed issue in GroupHandler and WhatFailureGroupHandler where setting multiple processors would duplicate records > * Fixed GelfFormatter losing some data when one attachment was too long > * Fixed issue in SignalHandler restarting syscalls functionality > * Improved performance of LogglyHandler when sending multiple logs in a single request > > ### 2.0.0-beta1 (2018-12-08) > > * BC Break: This is a major release, see [https://github.com/Seldaek/monolog/blob/master/UPGRADE.md](https://github.com/Seldaek/monolog/blob/master/UPGRADE.md) for details if you are coming from a 1.x release > * BC Break: PHP 7.1 is now the minimum required PHP version. > * BC Break: Quite a few interface changes, only relevant if you implemented your own handlers/processors/formatters > * BC Break: Removed non-PSR-3 methods to add records, all the `add*` (e.g. `addWarning`) methods as well as `emerg`, `crit`, `err` and `warn` > * BC Break: The record timezone is now set per Logger instance and not statically anymore > * BC Break: There is no more default handler configured on empty Logger instances > * BC Break: ElasticSearchHandler renamed to ElasticaHandler > * BC Break: Various handler-specific breaks, see [https://github.com/Seldaek/monolog/blob/master/UPGRADE.md](https://github.com/Seldaek/monolog/blob/master/UPGRADE.md) for details > * Added scalar type hints and return hints in all the places it was possible. Switched strict_types on for more reliability. > * Added DateTimeImmutable support, all record datetime are now immutable, and will toString/json serialize with the correct date format, including microseconds (unless disabled) > * Added timezone and microseconds to the default date format > * Added SendGridHandler to use the SendGrid API to send emails > * Added LogmaticHandler to use the Logmatic.io API to store log records > * Added SqsHandler to send log records to an AWS SQS queue > * Added ElasticsearchHandler to send records via the official ES library. Elastica users should now use ElasticaHandler instead of ElasticSearchHandler > * Added NoopHandler which is similar to the NullHandle but does not prevent the bubbling of log records to handlers further down the configuration, useful for temporarily disabling a handler in configuration files > * Added ProcessHandler to write log output to the STDIN of a given process > * Added HostnameProcessor that adds the machine's hostname to log records > * Added a `$dateFormat` option to the PsrLogMessageProcessor which lets you format DateTime instances nicely > * Added support for the PHP 7.x `mongodb` extension in the MongoDBHandler > * Fixed many minor issues in various handlers, and probably added a few regressions too > > ### 1.25.0 (xx) > ... (truncated)
Upgrade guide *Sourced from [monolog/monolog's upgrade guide](https://github.com/Seldaek/monolog/blob/master/UPGRADE.md).* > ### 2.0.0 > > - `Monolog\Logger::API` can be used to distinguish between a Monolog `1` and `2` > install of Monolog when writing integration code. > > - Removed non-PSR-3 methods to add records, all the `add*` (e.g. `addWarning`) > methods as well as `emerg`, `crit`, `err` and `warn`. > > - DateTime are now formatted with a timezone and microseconds (unless disabled). > Various formatters and log output might be affected, which may mess with log parsing > in some cases. > > - The `datetime` in every record array is now a DateTimeImmutable, not that you > should have been modifying these anyway. > > - The timezone is now set per Logger instance and not statically, either > via ->setTimezone or passed in the constructor. Calls to Logger::setTimezone > should be converted. > > - `HandlerInterface` has been split off and two new interfaces now exist for > more granular controls: `ProcessableHandlerInterface` and > `FormattableHandlerInterface`. Handlers not extending `AbstractHandler` > should make sure to implement the relevant interfaces. > > - `HandlerInterface` now requires the `close` method to be implemented. This > only impacts you if you implement the interface yourself, but you can extend > the new `Monolog\Handler\Handler` base class too. > > - There is no more default handler configured on empty Logger instances, if > you were relying on that you will not get any output anymore, make sure to > configure the handler you need. > > #### LogglyFormatter > > - The records' `datetime` is not sent anymore. Only `timestamp` is sent to Loggly. > > #### AmqpHandler > > - Log levels are not shortened to 4 characters anymore. e.g. a warning record > will be sent using the `warning.channel` routing key instead of `warn.channel` > as in 1.x. > - The exchange name does not default to 'log' anymore, and it is completely ignored > now for the AMQP extension users. Only PHPAmqpLib uses it if provided. > > #### RotatingFileHandler > > - The file name format must now contain `{date}` and the date format must be set > to one of the predefined FILE_PER_* constants to avoid issues with file rotation. > See `setFilenameFormat`. > > ... (truncated)
Commits - [`6854516`](https://github.com/Seldaek/monolog/commit/68545165e19249013afd1d6f7485aecff07a2d22) Update changelog - [`f954b4e`](https://github.com/Seldaek/monolog/commit/f954b4ea842b4ad5419e0705be9a20c88c586890) Update changelog - [`9b5deda`](https://github.com/Seldaek/monolog/commit/9b5deda678654b7c115e1f42b831f13da13aad77) Merge pull request [#1290](https://github-redirect.dependabot.com/Seldaek/monolog/issues/1290) from versh23/fix-gelp-formtatter - [`57b286f`](https://github.com/Seldaek/monolog/commit/57b286f3d1bfbc7a17eef0c70813b91d706b95ca) Reuse normalizeException from NormalizerFormatter in JsonFormatter, fixes [#1366](https://github-redirect.dependabot.com/Seldaek/monolog/issues/1366) - [`acf8e9e`](https://github.com/Seldaek/monolog/commit/acf8e9e9a38ce6da1ddea6fbc8ac692d200b7030) Merge branch '1.x' - [`5668309`](https://github.com/Seldaek/monolog/commit/56683090604e98061a0a079bc3a480d790fe3f32) Merge pull request [#1363](https://github-redirect.dependabot.com/Seldaek/monolog/issues/1363) from Seldaek/normalize_normalizers - [`ab4757d`](https://github.com/Seldaek/monolog/commit/ab4757ddf85ea0c483f6c5c023f2a838414439ca) Merge branch '1.x' into normalize_normalizers - [`2efcbcd`](https://github.com/Seldaek/monolog/commit/2efcbcd181a119d948a729bedfb83a462bdfa95d) Remove closure stack frames entirely from log - [`6688b45`](https://github.com/Seldaek/monolog/commit/6688b45ebece577217cf4a2b9094caa6925ce684) Normalize the way backtraces are normalized and remove args for special cases... - [`4976375`](https://github.com/Seldaek/monolog/commit/4976375873b2f284b629cfe4f3af1286d2762470) Update changelog - Additional commits viewable in [compare view](https://github.com/Seldaek/monolog/compare/1.24.0...2.0.0)


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.