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

moshe weitzman’s picture

Priority: Normal » Minor

1. 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

moshe weitzman’s picture

note that we now show memory in addition to timing when in debug mode.

greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Component: Code » Base system (internal API)
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This 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.