Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 22, 2025
1 parent 76cf7a2 commit fa45633
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ Logging

Symfony comes with two minimalist `PSR-3`_ loggers: :class:`Symfony\\Component\\HttpKernel\\Log\\Logger`
for the HTTP context and :class:`Symfony\\Component\\Console\\Logger\\ConsoleLogger` for the
CLI context.
In conformance with `the twelve-factor app methodology`_, they send messages starting from the
``WARNING`` level to `stderr`_.
CLI context. In conformance with `the twelve-factor app methodology`_, they send messages
starting from the ``WARNING`` level to `stderr`_.

The minimal log level can be changed by setting the ``SHELL_VERBOSITY`` environment variable:

Expand All @@ -30,7 +29,7 @@ For more information about ``ConsoleLogger``, see :doc:`/components/console/logg
Logging a Message
-----------------

To log a message using the ``logger`` service, inject the default logger in your controller or service::
To log a message, inject the default logger in your controller or service::

use Psr\Log\LoggerInterface;
// ...
Expand Down Expand Up @@ -62,7 +61,7 @@ Adding placeholders to log messages is recommended because:
* It's better for security, because escaping can then be done by the
implementation in a context-aware fashion.

The logger implementations has different methods for different logging levels/priorities.
The ``logger`` service has different methods for different logging levels/priorities.
See `LoggerInterface`_ for a list of all of the methods on the logger.

Monolog
Expand Down

0 comments on commit fa45633

Please sign in to comment.