Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Console] Update the doc for automatic console logging#7373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
javiereguiluz commentedJan 16, 2017
Yes, we should remove the contents of this article ... but maybe it's too son to remove the article itself. Otherwise, all the |
chalasr commentedJan 17, 2017
@javiereguiluz Let's do it like that 👍 |
javiereguiluz commentedJan 17, 2017
@chalasr then we can remove the link entirely and add it later if needed: |
368b538 toa73e932Comparechalasr commentedJan 17, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Oops, that's what I meant, but forgot "without" in my last sentence :) I made the change |
javiereguiluz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍
a73e932 tocff3a8dComparecff3a8d to76d2c91Comparechalasr commentedJan 18, 2017
I re-added the page title so that other pages can have links to, the travis build was failing if missing. |
…eshalsall, chalasr)This PR was merged into the 3.3-dev branch.Discussion----------[Console][FrameworkBundle] Log console exceptions| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | #10895| License | MIT| Doc PR |symfony/symfony-docs#7373Continues #19382, fixing some issues including:- ability to display the input string for any `InputInterface` implementation (cast to string if possible, use the command name otherwise)- if the input can be casted as string, cleanup the result (from `command "'command:name' --foo=bar" ` to `command "command:name --foo=bar"`)- made `ExceptionLister::$logger` private instead of protected- changed methods name from `onKernel*` to `onConsole*` (e.g. `onConsoleException`) and removed unnecessary doc blocks- Added more testsLog for an exception:> [2016-12-22 00:34:42] app.ERROR: Exception thrown while running command: "cache:clear -vvv". Message: "An error occured!" {"exception":"[object] (RuntimeException(code: 0): An error occured! at /Volumes/HD/Sites/tests/sf-demo-3.2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:61)","command":"cache:clear -vvv","message":"An error occured!"} []Commits-------919041c1ad Add Console ExceptionListener9896547a4d Add basic support for automatic console exception logging
…eshalsall, chalasr)This PR was merged into the 3.3-dev branch.Discussion----------[Console][FrameworkBundle] Log console exceptions| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#10895| License | MIT| Doc PR |symfony/symfony-docs#7373Continues#19382, fixing some issues including:- ability to display the input string for any `InputInterface` implementation (cast to string if possible, use the command name otherwise)- if the input can be casted as string, cleanup the result (from `command "'command:name' --foo=bar" ` to `command "command:name --foo=bar"`)- made `ExceptionLister::$logger` private instead of protected- changed methods name from `onKernel*` to `onConsole*` (e.g. `onConsoleException`) and removed unnecessary doc blocks- Added more testsLog for an exception:> [2016-12-22 00:34:42] app.ERROR: Exception thrown while running command: "cache:clear -vvv". Message: "An error occured!" {"exception":"[object] (RuntimeException(code: 0): An error occured! at /Volumes/HD/Sites/tests/sf-demo-3.2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:61)","command":"cache:clear -vvv","message":"An error occured!"} []Commits-------919041c Add Console ExceptionListener9896547 Add basic support for automatic console exception logging
…eshalsall, chalasr)This PR was merged into the 3.3-dev branch.Discussion----------[Console][FrameworkBundle] Log console exceptions| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | #10895| License | MIT| Doc PR |symfony/symfony-docs#7373Continues #19382, fixing some issues including:- ability to display the input string for any `InputInterface` implementation (cast to string if possible, use the command name otherwise)- if the input can be casted as string, cleanup the result (from `command "'command:name' --foo=bar" ` to `command "command:name --foo=bar"`)- made `ExceptionLister::$logger` private instead of protected- changed methods name from `onKernel*` to `onConsole*` (e.g. `onConsoleException`) and removed unnecessary doc blocks- Added more testsLog for an exception:> [2016-12-22 00:34:42] app.ERROR: Exception thrown while running command: "cache:clear -vvv". Message: "An error occured!" {"exception":"[object] (RuntimeException(code: 0): An error occured! at /Volumes/HD/Sites/tests/sf-demo-3.2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:61)","command":"cache:clear -vvv","message":"An error occured!"} []Commits-------919041c1ad Add Console ExceptionListener9896547a4d Add basic support for automatic console exception logging
chalasr commentedJan 24, 2017
symfony/symfony#21003 has been merged, this is no longer on hold. |
xabbuh commentedFeb 3, 2017
Thank you@chalasr. |
…(chalasr)This PR was merged into the master branch.Discussion----------[Console] Update the doc for automatic console loggingInsymfony/symfony#21003 we are going to provide automatic error/exception logging for the console, similar to what is done in an HTTP context.In the docs, there is a whole chapter dedicated to this topic. Right now I just removed it, maybe it should be done differently or mentioned somewhere that error/exceptions are automatically logged on the `console` channel?ThanksCommits-------76d2c91 Update the doc for automatic console logging
Insymfony/symfony#21003 we are going to provide automatic error/exception logging for the console, similar to what is done in an HTTP context.
In the docs, there is a whole chapter dedicated to this topic. Right now I just removed it, maybe it should be done differently or mentioned somewhere that error/exceptions are automatically logged on the
consolechannel?Thanks