Added log writer