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

Add func name in between file name and line number #1

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

sizhky
Copy link
Owner

@sizhky sizhky commented Mar 17, 2021

Like so

app.py:supervised_api:74

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Really wanted to have function name as part of logging module. Now it is possible with the following code.

Like so

`app.py:supervised_api:74`
@sizhky sizhky merged commit dca1113 into master Mar 17, 2021
@sizhky sizhky deleted the func-name-in-logger branch March 17, 2021 15:17
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