from rest_framework import serializers
import logging
logger = logging.getLogger(name)
class MySerializer(serializers.ModelSerializer):
def create(self, validated_data):
logger.info('Information incoming!')
return response
def update(self, instance, validated_data):
logger.error('Something went wrong!')