Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

tweak log4php file:line column to optionally ignore log4php wrappers and optionally shorten file path #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

simonhf
Copy link

@simonhf simonhf commented Nov 6, 2014

Inspired by [1]. Useful if log4php is itself wrapped by a caller class which you do not want showing up in syslog as the file:line. Plus, if file is unnecessarily long then this patch allows the path to be shortened.

[1] http://stackoverflow.com/questions/15219327/php-log4php-dynamically-set-fileline-column

@kategray
Copy link

@rgoers Like the other commit, looks good in theory, but I'd like to get a unit test up to make sure it's behaving properly before committing this to develop.

@rgoers
Copy link
Member

rgoers commented Oct 29, 2019

OK. Please go ahead with that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants