8000 minor #14994 [Logger] Add relations between LoggerInterface and verbo… · symfony/symfony-docs@82db86d · GitHub
[go: up one dir, main page]

Skip to content

Commit 82db86d

Browse files
committed
minor #14994 [Logger] Add relations between LoggerInterface and verbosity (tjveldhuizen)
This PR was merged into the 4.4 branch. Discussion ---------- [Logger] Add relations between LoggerInterface and verbosity I have a hard time remembering which OutputInterface::VERBOSITY-level matches which method on the LoggerInterface and the number of v's on the CLI. Therefore I suggest adding this table to the page. Maybe the location is not optimal: feedback welcome. Commits ------- a74de75 Update monolog_console.rst
2 parents 041dab1 + a74de75 commit 82db86d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

logging/monolog_console.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ the console. If they are displayed, they are timestamped and colored appropriate
6767
Additionally, error logs are written to the error output (``php://stderr``).
6868
There is no need to conditionally handle the verbosity settings anymore.
6969

70+
=============== ======================================= ============
71+
LoggerInterface Verbosity Command line
72+
=============== ======================================= ============
73+
->error() OutputInterface::VERBOSITY_QUIET stderr
74+
->warning() OutputInterface::VERBOSITY_NORMAL stdout
75+
->notice() OutputInterface::VERBOSITY_VERBOSE -v
76+
->info() OutputInterface::VERBOSITY_VERY_VERBOSE -vv
77+
->debug() OutputInterface::VERBOSITY_DEBUG -vvv
78+
=============== ======================================= ============
79+
7080
The Monolog console handler is enabled by default:
7181

7282
.. configuration-block::

0 commit comments

Comments
 (0)
0