data logging formatting