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