logger_2.py 235 B

12345678
  1. def consume(data: PydanticLogModel) -> None:
  2. stream_logger.info(data.json())
  3. async with app:
  4. logger.debug("Log Message", UserLog(user="kafkaesk"))
  5. await app.flush()
  6. await app.consume_for(1, seconds=5)