Skip to content

[5.7] Allows for custom formatter when using Slack Log driver #26377

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

Merged
merged 1 commit into from
Nov 5, 2018
Merged

[5.7] Allows for custom formatter when using Slack Log driver #26377

merged 1 commit into from
Nov 5, 2018

Conversation

dpsarrou
Copy link
Contributor

@dpsarrou dpsarrou commented Nov 3, 2018

Use case

Allow for a custom formatter defined in logging.php config file, when using the Slack Log driver.

More info

Looking at the source code of LogManager, it allows for using a custom formatter if defined in the logging.php config file. However the method of LogManager that creates the Slack driver does not pass on the $config array to the appropriate method. This PR addresses this by passing the missing configuration array to the prepareHandler() method. This is a non breaking change as the existing implementation will fallback to the default formatter if none defined in the logging.php config file.

@taylorotwell taylorotwell merged commit 76aaaad into laravel:5.7 Nov 5, 2018
@dpsarrou dpsarrou deleted the 5.7_allow_custom_formatter_for_slack_driver branch November 5, 2018 14:01
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

Successfully merging this pull request may close these issues.

2 participants