starting Log handler code