Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Core Commands
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jul 2012 at 16:06 UTC
Updated:
11 Sep 2013 at 11:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
deviantintegral commentedHere is my work in progress. It prints out a table, but the table widths are currently broken. As well, there's no functionality to select what messages to summarize on.
Comment #2
deviantintegral commentedHere's an updated patch courtesy of format-patch. I squashed all of my work into a single commit, but if anyone is interested in the history I can post that as well.
This patch adds a functional watchdog-summary command for both D6 and D7. As well, it refactors some of the severity and type checking.
Comment #3
greg.1.anderson commentedLooks pretty useful. Maybe you could strip the html markup out of the messages?
Comment #4
deviantintegral commentedThe attached wraps the message in trim(drush_html_to_text()).
Comment #5
greg.1.anderson commentedI get some warnings:
Seems to be a discrepancy between $severity (variable assigned) and $level ($variable used).
Comment #6
davidburnsInstead of stripping the HTML tags can we convert them to bold or color?
Comment #7
greg.1.anderson commentedFrom drush_print_log:
Something similar could be done for bolded text.
However, I think this should be a separate issue. A motivated individual could modify drush_html_to_text() to do the right thing; patches welcome. (Extra points if the escape sequences from drush_print_log are factored out into a separate routine used wherever bold or colored text is needed.)
Comment #8
deviantintegral commented#1683026: Use text formatting when rendering HTML (e.g. help topics)
Comment #9
greg.1.anderson commentedI don't think it is necessary to block this issue on #1683026; could be done in either order, as desired.
Comment #10
deviantintegral commentedThe attached fixes the warnings above as well as fixes passing in --severity=0.
Comment #11
greg.1.anderson commentedStill having some trouble with this.
Running without --severity or --type gives warnings about $level, and produces no output. Running with --severity=error gives no warnings, but summarizes all severity levels. Running with --severity=error and --type=php seems to produce the correct output.
Comment #12
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.