upkie  11.0.0
Open-source wheeled biped robots
upkie.logging Namespace Reference

Custom logging formatter and logger for the library. More...

Classes

class  RateLimitFilter
 Logging filter that rate-limits repeated warnings from the same source. More...
 
class  SpdlogFormatter
 Custom logging formatter visually consistent with spdlog. More...
 

Functions

None disable_warnings ()
 Disable all warnings from the upkie module.
 
None rate_limit_repeated_warnings (float min_interval=1.0)
 Rate-limit warnings that repeat from the same source line. More...
 

Variables

 logger = logging.getLogger("upkie")
 Main logger instance for the Upkie library.
 
 handler = logging.StreamHandler()
 Stream handler for console output with custom formatting.
 
 propagate
 Prevent propagation to root logger to avoid duplicate messages.
 

Detailed Description

Custom logging formatter and logger for the library.