So I tried to create a logging for my code:
views.py
class name_of_API(generics.GenericAPIView): @my_logging @swagger_auto_schema