six8 / logaware

Python Logger that is context aware
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Sometimes you don't want logaware to str.format a message #11

Open six8 opened 4 years ago

six8 commented 4 years ago

logaware expects messages to use {name} in log messages to format log keyword arguments.

logger.error("message {example}", example="foo")

This can be a problem if the message comes from a third party library which may have "{" in the messages, but not for string formatting purposes.

logaware should allow you to bypass the string formatting.