Skip to content

Instantly share code, notes, and snippets.

@Odew
Last active February 26, 2020 07:27
Show Gist options
  • Save Odew/31caf173b3feebcbd1a0 to your computer and use it in GitHub Desktop.
Save Odew/31caf173b3feebcbd1a0 to your computer and use it in GitHub Desktop.
grcat configuration file for Openerp coloration log
# Error
regexp=ERROR.*$
colours=bold red
count=stop
======
# Warning Message
regexp=WARNING.*$
colours=dark yellow
count=more
======
# Warning Flag
regexp=WARNING
colours=dark bold yellow
count=more
======
# Warning Access Rules
regexp=The model .* has no access rules
colours= on_red bold white
count=more
======
# Info
regexp=INFO
colours=green
count=more
======
# ip number
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold magenta
count=more
======
# this is probably a pathname
regexp=[a-z_]*/[\w/\.]+
colours=blue
count=more
=====
# Customer db Name
regexp=[a-z]{1,3}_[0-9]{1,2}_[0-9]{1,2}
colours=white
count=more
@Odew
Copy link
Author

Odew commented Jun 7, 2016

example:
tailf /var/log/odoo/logicasoft.log | grcat ~/.grc/openerp.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment