Skip to content

Commit fa45633

Browse files
committed
Minor tweaks
1 parent 76cf7a2 commit fa45633

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

logging.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ Logging
33

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

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

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

33-
To log a message using the ``logger`` service, inject the default logger in your controller or service::
32+
To log a message, inject the default logger in your controller or service::
3433

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

65-
The logger implementations has different methods for different logging levels/priorities.
64+
The ``logger`` service has different methods for different logging levels/priorities.
6665
See `LoggerInterface`_ for a list of all of the methods on the logger.
6766

6867
Monolog

0 commit comments

Comments
 (0)