searx-qt-debug 549 B

123456789101112131415
  1. #!/bin/bash
  2. # Make ERROR red
  3. # Make WARNING purple
  4. # Make DEBUG brown/yellow
  5. # Make INFO cyan
  6. # Make unknown green; for spotting unknown keys.
  7. SEARXQT_DEBUG=1 searx-qt 2>&1 \
  8. | GREP_COLOR='01;36' grep --color=always --line-buffered ' INFO \|$' \
  9. | GREP_COLOR='01;31' grep --color=always --line-buffered ' ERROR \|$' \
  10. | GREP_COLOR='01;33' grep --color=always --line-buffered ' WARNING \|$' \
  11. | GREP_COLOR='01;35' grep --color=always --line-buffered ' DEBUG \|$' \
  12. | GREP_COLOR='01;32' grep --color=always --line-buffered -i 'unknown\|$'