We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8e74a commit e99177fCopy full SHA for e99177f
components/console/logger.rst
@@ -103,4 +103,15 @@ constructor::
103
);
104
$logger = new ConsoleLogger($output, array(), $formatLevelMap);
105
106
+Errors
107
+------
108
+
109
+.. versionadded:: 3.2
110
+ The ``hasErrored()`` method was introduced in Symfony 3.2.
111
112
+The Console logger includes a ``hasErrored()`` method which returns ``true`` as
113
+soon as any error message has been logged during the execution of the command.
114
+This is useful to decide which status code to return as the result of executing
115
+the command.
116
117
.. _PSR-3: http://www.php-fig.org/psr/psr-3/
0 commit comments