add log writer