title: How to log two variables values in a single logging in Python?
body: <p>I am working with Python and I need to use logger so I decided to start using RotatingFileHandler. Below is my <code>logging.conf</code> file</p>
  
  <pre><code>[loggers]
  keys=root
  
  [handlers]
  keys=logfile
  
  [formatters]
  keys=logfileformatter
  
  [logger_root]
  level=DEBUG
  handlers=logfile
  
  [formatter_logfileformatter]
  format=%(asctime)s %(name)-12s: %(levelname)s %(message)s
  
  [handler_logfile]
  class=handlers.RotatingFileHandler
  level=NOTSET
  args=('ookagent.log', 'a', 50000000000, 5)
  formatter=logfileformatter
  </code></pre>
  
  <p>And below is my Python script from which I am successfully able to log to the files. But I am trying to log two variable values from a single logging as mentioned like below - </p>
  
  <pre><code>#!/usr/bin/python
  import logging
  import logging.config
  import logging.handlers
  
  # using RotatingFileHandler for logging purpose
  logging.config.fileConfig('logging.conf')
  ooklogger = logging.getLogger('')
  
  list1 = ['abc', 'def', 'ghi']
  list2 = ['jkl', 'mno', 'pqr']
  
  ooklogger.info("Test %s" % (list1, list2))
  </code></pre>
  
  <p>But whenever I run my above Python script, I always get below error - </p>
  
  <pre><code>ooklogger.info("Test %s" % (list1, list2))
  TypeError: not all arguments converted during string formatting
  </code></pre>
  
  <p>Any idea what wrong I am doing?</p>