The output of the drush log in the console isn't as clean as it could be.
By modifying the way the log time is displayed, and the order of the columns, the log messages would become much clearer.
So instead of having:
[message, time][level]
We'd have:
[time][level][message]
There are two benefits of that way:
(a) Seperating out [time] makes things much clearer to the eye.
(b) By putting [message] last, it will be easier to wrap long messages in a way that is still clear to read. Because the knowable length columns of [time] and [level] are leftmost.
2. It's not clear how to change the column widths of the log output. I found out it was looking at COLUMNS or a default of 80 by reading the code.
(a) Somewhere in the documentation, it could be added that you need to:
export COLUMNS
(b) Perhaps, when bootstrapping drush it could automatically run "export COLUMNS"?
(c) Or upon first run, add it to .bashrc? On one of the most popular distributions - Ubuntu - COLUMNS is not set automatically.
Comments
Comment #1
moshe weitzman commented1. not a bad idea. patches welcome.
2. is done. call drush via the `drush` shell script, and not drush.php. this is mentioned in readme
Comment #2
moshe weitzman commentednote that we now show memory in addition to timing when in debug mode.
Comment #3
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.