log writing in file complete