Skip to content

Instantly share code, notes, and snippets.

@bprosnitz
Last active August 29, 2015 14:15
Show Gist options
  • Save bprosnitz/02fc50d0a0f1c2fe0922 to your computer and use it in GitHub Desktop.
Save bprosnitz/02fc50d0a0f1c2fe0922 to your computer and use it in GitHub Desktop.
Make chrome console log output human readable when using --logtostderr
#!/bin/bash
sed ':a;N;$!ba;s/\(.\{279\}\)\n/\1@#@\n/g' $1 | sed 's/^\[[^]]*\]//g' | sed 's| "<autogenerated>:334: ||g' | sed 's/", source: chrome-extension:\/\/[a-zA-Z0-9.\/]* ([0-9]*)//g' | sed ':a;N;$!ba;s/@#@\n//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment