Created
November 25, 2019 09:17
-
-
Save vjrj/385d90852038fec9d002fca3f7dd00b1 to your computer and use it in GitHub Desktop.
A grc configuration for biocache tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# A grc configuration we use to add colors to biocache-store logs | |
# used in conjuntion with AnsiColor plugin: | |
# http://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin | |
# | |
# Usage: | |
# apt install grc | |
# put this file in /etc/grc.conf (for instance) | |
# | |
# Pipe bioache commands to grcat: | |
# biocache ingest -dr $data_resource_uid | grcat /etc/grc.conf | |
# | |
# Finish job with the exit code of biocache instead of the grcat exit code: | |
# ECODE=${PIPESTATUS[0]} | |
# exit $ECODE | |
# | |
# More info: | |
# https://github.com/garabik/grc/blob/92aac170d07c754a0c720f713cbd426edea421c8/grcat | |
regexp= (INFO|SUCCESS) | |
colours=green | |
count=more | |
====== | |
regexp= SUCCESS | |
colours=green | |
count=more | |
====== | |
regexp=WARN | |
regexp=^.*(WARN|WARNING|Warning).*$ | |
colours=yellow | |
count=more | |
# From http://fahdshariff.blogspot.ca/2011/04/highlighting-command-output-with.html | |
====== | |
# this configuration file is suitable for displaying log files | |
#errors | |
regexp=^.*(ERROR|Error|Exception).*$ | |
colours=bold red | |
====== | |
#stack trace | |
regexp=^\s+at [^:]*:\d*\)$ | |
colours=red | |
====== | |
regexp=^.*(SEVERE|FATAL|Fatal).*$ | |
colours=on_red | |
====== | |
regexp=^.*(WARNING|Warning).*$ | |
colours=bold yellow | |
====== | |
regexp=^.*(DEBUG|Debug).*$ | |
colours=bold black | |
====== | |
# this is a time | |
# colors https://i.stack.imgur.com/KTSQa.png | |
regexp= [^\d]*\d\d:\d\d:\d\d[\.,]{0,1}\d{0,1}\d{0,1}\d{0,1} | |
#colours=cyan | |
colours="\033[38;5;239m" | |
count=once | |
====== | |
# ip number | |
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | |
colours=bold magenta | |
count=more | |
====== | |
regexp= \[.*\] | |
#colours=cyan | |
colours="\033[38;5;43m" | |
count=once | |
====== | |
regexp=http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+ | |
#colours=cyan | |
colours="\033[38;5;74m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment