Debug: add log writer