Skip to content

Instantly share code, notes, and snippets.

@dingo-d

dingo-d/conf.phperrorlog

Last active Jul 17, 2020
Embed
What would you like to do?
Config examples for debug, and error logs with grc: https://github.com/garabik/grc
# Highlight time
regexp=^\[\d\d-[A-Z][a-z][a-z]-\d\d\d\d \d\d:\d\d:\d\d [A-Z]{3}\]
colour=dark
count=once
-
# Highlight file paths with lines at end
regexp=(/[A-z0-9-]+)+.php:[\d]+
colour=green
count=more
-
# Highlight file paths
regexp=(/[A-z0-9-]+)+.php
colour=dark green
count=more
-
# Highlight line numbers
regexp=line [\d]+
colour=green
count=once
-
# Highlight files even more
regexp=[A-z0-9-]+.php
colour=green
count=once
-
# Highlight objects
regexp= [A-z_]+->
colour=cyan
count=once
-
# Highlight functions
regexp=[A-z_]+\(\)
colour=yellow
count=more
-
# Highlight functions - misc (stack trace)
regexp=\{main\}\(\)
colour=yellow
count=more
-
# Stack trace
regexp= Stack trace
colour=dark
count=once
-
# Error
regexp= PHP Error:
colour=on_red
count=stop
-
# Warning
regexp= PHP Warning:
colour=on_yellow black
count=stop
-
# Notice
regexp= PHP Notice:
colour=on_yellow black
count=stop
-
# Normal
regexp= PHP
colour=dark
count=stop%
(debug|error).log
conf.phperrorlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment