Skip to content

Update LoggerInterface hyperlink to GitHub page #16102

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 15, 2021

Conversation

abdellahrk
Copy link
Contributor

On this line 'The logger service has different methods for different logging levels/priorities. See LoggerInterface for a list of all of the methods on the logger.' the LoggerInterface link leads to a 404 GitHub page. This PR is to update it to the correct link.

Copy link
Contributor

@BahmanMD BahmanMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to change this line as follow.

@@ -41,7 +41,7 @@ To log a message, inject the default logger in your controller or service::
}

The ``logger`` service has different methods for different logging levels/priorities.
See `LoggerInterface`_ for a list of all of the methods on the logger.
See .. _`LoggerInterface`: https://github.com/php-fig/log/blob/master/src/LoggerInterface.php for a list of all of the methods on the logger.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to change this line as follow:

See `LoggerInterface <https://github.com/php-fig/log/blob/master/src/LoggerInterface.php>`_ for a list of all of the methods on the logger.

On this line 'The logger service has different methods for different logging levels/priorities. See LoggerInterface for a list of all of the methods on the logger.' the LoggerInterface link leads to a 404 GitHub page. This PR is to update it to the correct link.
@javiereguiluz
Copy link
Member

Abdellah, thanks for fixing this issue and congrats on your first Symfony Docs contribution 🎉

As discussed on Symfony Slack, the RST syntax used in docs is a bit tricky at first. That's why we made some tweaks to this pull request. The needed fix was to update the link at the bottom of the page. There's no need to add the URL inside the text. See 09e26d1 (please note that my tweaks contain some changes not strictly related to your fix).

@abdellahrk
Copy link
Contributor Author

Hi @javiereguiluz thank you for the note and guidance. I will do that next time.

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

Successfully merging this pull request may close these issues.

4 participants