Open NiklasRosenstein opened 2 weeks ago
Sorry about that, I did not manage to find this page 👉 👈 . Thank you, I'll check this out next week.
Hi.
Is there a way to have loguru support percent-style formatting?
Not really, you'll have to replace %s
with {}
in your logs.
I'm looking into migrating an existing project from Python's built-in
logging
facilities tologuru
. The code base uses printf-style formatting quite extensively, e.g.Unfortunately loguru doesn't seem to be plug&play in this situation, unless I'm missing something. Is there a way to have loguru support percent-style formatting?