Is it possible to show package name in path #1286
-
The above picture is a screenshot of logs produced by my application tgcf. I am using the rich handler like this. logging.basicConfig(
level=level,
format="%(message)s",
handlers=[
RichHandler(
rich_tracebacks=True,
markup=True,
)
],
) In the right column you can see the path of file with line no, which emmited the log. how can I also show the package name ? (full path like how to customize the path format ? |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Jun 12, 2021
Replies: 1 comment
-
There's no way to configure that at the moment, but the RichHandler class could be subclasses to add this. You probably want to customize the RichHandler.render function. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
willmcgugan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no way to configure that at the moment, but the RichHandler class could be subclasses to add this. You probably want to customize the RichHandler.render function.