Avoiding delete by query to write in logs

Sorry for delayed response. I'm trying to figure out as how the logger can be configured. It's helpful if you can guide me.

Thanks