Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa45633

Browse files
committed
Minor tweaks
1 parent76cf7a2 commitfa45633

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎logging.rst

Lines changed: 4 additions & 5 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp