anchor.diff:  import sys
   import os
   import logging
  +import logging.handlers
   import time
   import re
   import fnmatch
  
positive.code:     parser.add_argument('-c', '--command', metavar='COMMAND', type=str, nargs=1, required=True, help='Command to call on file events')
      parser.add_argument('-re', '--regex-pattern', metavar='PATTERN', type=str, nargs='*', help='Regular Expression used to match files from which listen the events')
      parser.add_argument('-fn', '--filename-pattern', metavar='PATTERN', type=str, nargs='*', help='File Name Expression used to match files from which listen the events')
      args = parser.parse_args()
  
      # Init variables
  
negative.code:     path = args.watch.pop() if args.watch else ''
      command = args.command.pop() if args.command else ''
  
      # Log to STDOUT
      if args.quiet:
          logging.disable(logging.CRITICAL)
          logger.propagate = False
          logger.setLevel(0)
      else:
          consoleHandler = logging.StreamHandler()
          consoleHandler.setFormatter(logging.Formatter('%(message)s'))
          logger.addHandler(consoleHandler)
          logger.setLevel(10)
  
      # Log to file
      if args.log_to_file and not args.quiet:
          fileHandler = logging.handlers.RotatingFileHandler(LOG_FILE, maxBytes=1048576, backupCount=5)
          fileHandler.setFormatter(logging.Formatter('%(asctime)s [%(levelname)s] %(message)s'))
          logger.addHandler(fileHandler)
          logger.setLevel(10)
  
      logger.debug("--------------------")
      logger.debug("FILENAME PATTERN: %s" % filename_pattern)
      logger.debug("REGEX PATTERN:    %s" % regex_pattern)
      logger.debug("SECONDS:          %s" % seconds)
      logger.debug("PATH:             %s" % path)
      logger.debug("COMMAND:          %s" % command)
      logger.debug("--------------------")
  
      # Check if the given path exist and is readable
      if not os.path.isdir(path) or not os.access(path, os.R_OK):
          logger.error("ERROR: Cant read the given path '%s'" % path)
          sys.exit(1)
  
      # Init the event handler class
  