add logWriter