Last active
March 26, 2024 21:40
-
-
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
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
# 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% |
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
(debug|error).log | |
conf.phperrorlog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment