Skip to content

Instantly share code, notes, and snippets.

@andreasjansson
Last active December 17, 2015 11:19
Show Gist options
  • Select an option

  • Save andreasjansson/5601220 to your computer and use it in GitHub Desktop.

Select an option

Save andreasjansson/5601220 to your computer and use it in GitHub Desktop.
python logging colours
alias colorlog='ack --flush --passthru --color --color-match=blue "DEBUG:" |
ack --flush --passthru --color --color-match=green "INFO:" |
ack --flush --passthru --color --color-match=yellow "WARNING:" |
ack --flush --passthru --color --color-match=red "ERROR:" |
ack --flush --passthru --color --color-match=magenta "CRITICAL:"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment