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

Increase debug logging with function,file and linenumber #1147

Merged
merged 1 commit into from
May 24, 2020
Merged

Conversation

42wim
Copy link
Owner

@42wim 42wim commented May 23, 2020

Show the function name,file and linenumber like this
[0000] INFO main: [setupLogger:matterbridge.go:100] Enabling debug logging.
[0000] INFO main: [main:matterbridge.go:46] Running version 1.17.5-dev

Only enable this for debug as this adds some overhead.

Show the function name,file and linenumber like this
[0000]  INFO main:         [setupLogger:matterbridge.go:100] Enabling debug logging.
[0000]  INFO main:         [main:matterbridge.go:46] Running version 1.17.5-dev

Only enable this for debug as this adds some overhead.
@codeclimate
Copy link

codeclimate bot commented May 23, 2020

Code Climate has analyzed commit ad67167 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 10.6% (0.0% change).

View more on Code Climate.

@42wim 42wim added this to the 1.17.5 milestone May 24, 2020
@42wim 42wim merged commit 9440b9e into master May 24, 2020
@42wim 42wim deleted the newlogger branch May 24, 2020 11:58
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.

1 participant