Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows to modify file depth from an external caller #1

Merged
merged 1 commit into from
May 22, 2017

Conversation

patrickdappollonio
Copy link

We use Log4Go in our project with a centralized wrapper that, among other things executes log4go's logging. If DefaultFileDepth is a constant, we will see the name of the package as the wrapper one, instead of the original caller, which is one level up. With this modification we can modify DefaultFileDepth outside, so it passes a 3, that'll allows us to track an additional level up and not the wrapper package.

We use Log4Go in our project with a centralized wrapper that, among other things executes `log4go`'s logging. If `DefaultFileDepth` is a constant, we will see the name of the package as the wrapper one, instead of the original caller, which is one level up. With this modification we can modify `DefaultFileDepth` outside, so it passes a `3`, that'll allows us to track an additional level up and not the wrapper package.
@ccpaging ccpaging merged commit f013fb3 into ccpaging:master May 22, 2017
@patrickdappollonio patrickdappollonio deleted the patch-1 branch May 22, 2017 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants