Django rest framework logging middleware