Description
Is your feature request related to a problem? Please describe.
I need to see seconds in the drush watchdog:show
command, but can't find a way how to do this. It just shows the date as a string with no seconds in all formats (json, xml, print-r, php, var_export, etc).
But for analyzing the output sometimes it's crucial to see the exact time with seconds.
Changing all the date formats in Drupal settings doesn't change the drush output format. Here is an example:
$ drush watchdog:show
----- -------------- --------- ---------- -------------------------------------------------------------------------------------------------------------------------
ID Date Type Severity Message
----- -------------- --------- ---------- -------------------------------------------------------------------------------------------------------------------------
700 20/Mar 10:35 php Error Error: Class "Drupal\commercetools\EventSubscriber\CommercetoolsCartIdStorage" not found in
Drupal\Component\DependencyInjection\Container->createService() (line 259 of /var/www/html/web/c
699 20/Mar 10:35 php Error Error: Class "Drupal\commercetools\EventSubscriber\CommercetoolsCartIdStorage" not found in
Drupal\Component\DependencyInjection\Container->createService() (line 259 of /var/www/html/web/c
698 20/Mar 10:15 cron Info Cron run completed.
697 20/Mar 10:15 cron Info Execution of webform_scheduled_email_cron() took 7.8ms.
696 20/Mar 10:15 webform Notice Cron task executed. (scheduled = 0; rescheduled = 0; unscheduled = 0; already scheduled = 0; ignored = 0; sent = 0; not
sent = 0; skipped = 0)
695 20/Mar 10:15 cron Info Starting execution of webform_scheduled_email_cron(), execution of webform_cron() took 28.73ms.
694 20/Mar 10:15 cron Info Starting execution of webform_cron(), execution of update_cron() took 560.84ms.
693 20/Mar 10:15 cron Info Starting execution of update_cron(), execution of system_cron() took 450.94ms.
692 20/Mar 10:15 cron Info Starting execution of system_cron(), execution of search_cron() took 30.96ms.
691 20/Mar 10:15 cron Info Starting execution of search_cron(), execution of node_cron() took 3.98ms.
----- -------------- --------- ---------- -------------------------------------------------------------------------------------------------------------------------
Describe the solution you'd like
Would be great to add an option where we can specify a custom date format for the output.
Describe alternatives you've considered
Alternatively, we can follow the default date format, configured in Drupal, but this looks not very good because for console output usually we want to have another format than for the admin UI.