make logging write to improved prefix, closes #2077