Skip to content

Commit

Permalink
Merge pull request #1 from sizhky/func-name-in-logger
Browse files Browse the repository at this point in the history
Add func name in between file name and line number
  • Loading branch information
sizhky authored Mar 17, 2021
2 parents 5d716be + 4a3cb13 commit dca1113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def render(
time_format=time_format,
level=level,
path=path,
line_no=record.lineno,
line_no=f'{record.funcName}:{record.lineno}',
link_path=record.pathname if self.enable_link_path else None,
)
return log_renderable
Expand Down

0 comments on commit dca1113

Please sign in to comment.