title: How To Turn Off Logging in Scrapy (Python)
body: <p>I have created a spider using Scrapy but I cannot figure out how to turn off the default logging.  From <a href="http://doc.scrapy.org/en/latest/topics/logging.html" rel="noreferrer">the documentation</a> it appears that I should be able to turn it off by doing</p>
  
  <pre><code>        logging.basicConfig(level=logging.ERROR)
  </code></pre>
  
  <p>But this has no effect.  From looking at the code for logging.basicConfig() I'm guessing this is because "the root logger has handlers configured" but perhaps I'm wrong about that.  At any rate, can anyone explain what I need to do to get Scrapy to not output the usual</p>
  
  <pre><code>        2015-10-18 17:42:00 [scrapy] INFO: Scrapy 1.0.3 started (bot: EF)
          2015-10-18 17:42:00 [scrapy] INFO: Scrapy 1.0.3 started (bot: EF)
          2015-10-18 17:42:00 [scrapy] INFO: Optional features available: ssl, http11, boto
          2015-10-18 17:42:00 [scrapy] INFO: Optional features available: ssl, http11, boto
  </code></pre>
  
  <p>etc.?</p>
  
  <p>EDIT:  As suggested by sirfz below, the line </p>
  
  <pre><code>        logging.getLogger('scrapy').setLevel(logging.WARNING)
  </code></pre>
  
  <p>can be used to set the logging level.  However, it appears that you must do this in the init method (or later) in your spider.</p>