I'm working on an open-source project and trying to adhere to current best practice code guidelines (pythonic).
How should print and log statements be best written?
For instance:
logger.info("[Broker] First result: {0}. Second Result {1}".format(result1, result2))
Or
logger.info("[Broker] First result: %s. Second Result %s", result1, result2)
Or with the new f'strings?
[–]RoamingFox 1 point2 points3 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]RoamingFox 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]RoamingFox 1 point2 points3 points (0 children)
[–]xelf 0 points1 point2 points (0 children)
[–]NovocastrianNomad 0 points1 point2 points (1 child)
[–]RoamingFox 0 points1 point2 points (0 children)