prepare for logging data