title: How to print multiline logs using python logging module?
body: <p>I want to create multiline logger using python logging module. When I use the code snippet below to format logger:</p>
  
  <pre><code>import logging
  logger = logging.getLogger(file_name)
  logger.setLevel(logging.DEBUG)
  ch = logging.StreamHandler()
  ch.setLevel(logging.DEBUG)
  formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
  ch.setFormatter(formatter)
  logger.addHandler(ch)
  </code></pre>
  
  <p>I get the output below for multiline logs when I use <strong><em>logger.info("""line 1\nline 2\n line 3""")</em></strong></p>
  
  <pre><code>2017-07-20 13:21:14,754 - my_logger.py - INFO - line 1
  line 2
  line 3
  </code></pre>
  
  <p>I want my output as below:</p>
  
  <pre><code>2017-07-20 13:21:14,754 - my_logger.py - INFO - line 1
  2017-07-20 13:21:14,754 - my_logger.py - INFO - line 2
  2017-07-20 13:21:14,754 - my_logger.py - INFO - line 3
  </code></pre>