File: color-b2-logs.sh

package info (click to toggle)
python-b2sdk 2.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,020 kB
  • sloc: python: 30,902; sh: 13; makefile: 8
file content (13 lines) | stat: -rwxr-xr-x 486 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -eu
awk -F '\t' '{print $1 " " $4 " " $5 " " $6}' | colorex --green=DEBUG \
    --bgreen=INFO \
    --bred=ERROR \
    --byellow=WARNING \
    --bmagenta='calling [\w\.]+' \
    --bblue='INFO // =+  [0-9\.]+   =+ \\' \
    --bblue='INFO // =+  [0-9\.]+   =+ \\' \
    --bblue='starting command .* with arguments:' \
    --bblue='starting command .* \(arguments hidden\)' \
    --red=Traceback \
    --green='\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d' \
    --cyan='b2\.sync'