Good day everyone!
I need to make logging of the actions in Django 1.10.4 with Django Rest Framework and save them in a file.
I have different serializers and functions in them. I've read documentation and not quite understood what I have to do in order to log actions such as CREATE, UPDATE or DELETE with data that I'm sending
For example I have:
class MySerializer(serializers.HyperlinkedModelSerializer):
def create(self, validated_data):
...some code...
return object
def update(self, instance, validated_data):
...some code...
return instance
How can I do this and do you have some references to similar tasks?