You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use -q --quiet flag. Not optimal, you need to remember where to use it, where not. If your project has 50+ commands, its a mess. Because if you wont remember - you will mute output write inside your commands.
Override ScheduleRunCommand and WorkCommand methods. Not optimal, you can miss updates from framework.
I have proposal to make some sort of config, to turn off those default "hardcoded outputs", but i dunno where to start, anyone have any ideas?
@nunomaduro, tagging you, because you did some improvements of those outputs, maybe you can share your thoughts.
Personally, i wanna do some sort of -J --json flag for output, and inject json formatter/PSR log, but i dont undersatand how Laravel/Symfony injects Input and Output instances to commands.
But there is a lot of work and i dont know if PR with such changes will be accepted.
Also, i think that <fg=green;options=bold>DONE</> colored output hardcodes - should be switched to OutputStyle.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a problem right now with logs output for commands and jobs:


Instead of json logs, we are getting stdout line + json line of logs merged.
Its because default ScheduleRunCommand and WorkCommand use console output for info about commands and jobs execution.
Problem lies here:
https://github.com/laravel/framework/blob/9.x/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php#L134
https://github.com/laravel/framework/blob/9.x/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php#L178
https://github.com/laravel/framework/blob/9.x/src/Illuminate/Queue/Console/WorkCommand.php#L217
There are 2 solutions right now:
I have proposal to make some sort of config, to turn off those default "hardcoded outputs", but i dunno where to start, anyone have any ideas?
@nunomaduro, tagging you, because you did some improvements of those outputs, maybe you can share your thoughts.
Personally, i wanna do some sort of -J --json flag for output, and inject json formatter/PSR log, but i dont undersatand how Laravel/Symfony injects Input and Output instances to commands.
But there is a lot of work and i dont know if PR with such changes will be accepted.
Also, i think that
<fg=green;options=bold>DONE</>
colored output hardcodes - should be switched to OutputStyle.Beta Was this translation helpful? Give feedback.
All reactions