Skip to content

Instantly share code, notes, and snippets.

@dingo-d
Last active March 26, 2024 21:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dingo-d/2cce0617c1cf497cc3e546cefa6712b8 to your computer and use it in GitHub Desktop.
Save dingo-d/2cce0617c1cf497cc3e546cefa6712b8 to your computer and use it in GitHub Desktop.
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