is there a way to log objects with the logger module vs logging strings?

You already invited:

Brian

Upvotes from:

Most properly written objects have a `str()` method, and when converted to a string have a reasonable representation.
All objects have a default `str` implementation, so it should be a safe operation to just pass the object as an argument, or create a string using the object as formatting input.

If you wanna answer this question please Login or Register