Replay-aware logger
Userestate.getLogger() inside your service code to create a standard Python logger with RestateLoggingFilter already attached:
logging APIs.
Add the replay filter to an existing logger
If your application or framework already creates its loggers, attachRestateLoggingFilter directly: