           addToFileList no, path
         when 'unlink'
           removeFromFileList path
-
+        when 'error'
+          logger.error path
+
+    writer = new fs_utils.FileWriter config, plugins
     fileList.on 'resetTimer', -> writer.write fileList
     writer.on 'write', (result) ->
       copyIfExists = fs_utils.copyIfExists


    removeFromFileList = (path) ->
      return fileList.resetTimer() if ignored path
      # logger.log 'debug', "File '#{path}' was removed"
      fileList.remove path

    plugins.forEach (plugin) ->

        plugin.include
      includePathes.forEach addToFileList.bind(null, yes)

    watcher = fs_utils.watch watchedFiles, (event, path) ->
      logger.log 'debug', "File '#{path}' received event #{event}"
      switch event
