pyrcf.core.logging
Attributes
Log data intermittently once every t seconds. Allows use directly as function call using |
Classes
Log data intermittently at specified frequency. |
Module Contents
- class pyrcf.core.logging.ThrottledLogger(name: str, rate: float, level: int | str = logging.INFO)
Bases:
logging.LoggerLog data intermittently at specified frequency.
- _handler
- __period
- __next_tick
- log(level, msg, *args, **kwargs)
Log ‘msg % args’ with the integer severity ‘level’.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.log(level, “We have a %s”, “mysterious problem”, exc_info=True)
- pyrcf.core.logging.throttled_logging
Log data intermittently once every t seconds. Allows use directly as function call using throttled_logging.<logtype>(“message”, delay_time_in_sec)