modifying log writer