Properly log data in WriteHandler