Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jlmorton
· 5y ago · 0 comments
While I realize we don't always have a logger wired up, it's also easy to implement this in standard logging.
%(filename_lineno)s will give you the filename and line.
Comments
[–]
kortex
5y ago
Loguru is a great package for "I just want a nicely formatted logger out of the box"