data logging server and logging code added