abseil / abseil-py

Abseil Common Libraries (Python)
Apache License 2.0
2.27k stars 246 forks source link

Introduces convenient logging functions for usage in loops: #265

Closed copybara-service[bot] closed 7 months ago

copybara-service[bot] commented 8 months ago

Introduces convenient logging functions for usage in loops:

The functions with the postfix _unique only log when they are called once per caller location and message. This is useful when used inside loops while the arguments to be logged may change. The current alternatives (logging.info, logging.warning, etc.) can load the log too heavily here.