Factored out some complex logging to np_to_strings