old_contents: import logging
  from optparse import OptionParser
  
  from twoline.manager import Manager
  
  
  def run_from_cmdline():
      parser = OptionParser()
      parser.add_option(
          '--port', '-p', dest='port', default='6224'
      )
      parser.add_option(
          '--ip', '-i', dest='ip', default='0.0.0.0'
      )
      parser.add_option(
          '--loglevel', '-l', dest='loglevel', default='INFO'
      )
      parser.add_option(
          '--logpath', dest='logpath', default=None
      )
      parser.add_option(
          '--size-x', '-x', dest='size_x', default='16',
      )
      parser.add_option(
          '--size-y', '-y', dest='size_y', default='2',
      )
      parser.add_option(
          '--text-cycle-interval', dest='text_cycle_interval', default='2'
      )
      parser.add_option(
          '--blink-interval', dest='blink_interval', default='0.25'
      )
  
      options, args = parser.parse_args()
  
      if len(args) != 1:
          parser.error('Device required (usually a path in /dev/)')
  
      if options.logpath:
          lp_logger = logging.getLogger(options.logpath)
          stream_handler = logging.StreamHandler()
          stream_handler.setLevel(options.loglevel)
          lp_logger.addHandler(stream_handler)
      else:
          logging.basicConfig(
              level=logging.getLevelName(options.loglevel)
          )
  
      manager = Manager(*args, **vars(options))
      manager.run()
  
new_contents: import logging
  from optparse import OptionParser
  
  from twoline.manager import Manager
  
  
  def run_from_cmdline():
      parser = OptionParser()
      parser.add_option(
          '--port', '-p', dest='port', default='6224'
      )
      parser.add_option(
          '--ip', '-i', dest='ip', default='0.0.0.0'
      )
      parser.add_option(
          '--loglevel', '-l', dest='loglevel', default='INFO'
      )
      parser.add_option(
          '--logpath', dest='logpath', default=None
      )
      parser.add_option(
          '--size-x', '-x', dest='size_x', default='16',
      )
      parser.add_option(
          '--size-y', '-y', dest='size_y', default='2',
      )
      parser.add_option(
          '--text-cycle-interval', dest='text_cycle_interval', default='2'
      )
      parser.add_option(
          '--blink-interval', dest='blink_interval', default='0.25'
      )
  
      options, args = parser.parse_args()
  
      if len(args) != 1:
          parser.error('Device required (usually a path in /dev/)')
  
      if options.logpath:
          lp_logger = logging.getLogger(options.logpath)
          lp_logger.setLevel(options.loglevel)
          stream_handler = logging.StreamHandler()
          stream_handler.setLevel(options.loglevel)
          lp_logger.addHandler(stream_handler)
      else:
          logging.basicConfig(
              level=logging.getLevelName(options.loglevel)
          )
  
      manager = Manager(*args, **vars(options))
      manager.run()
  
subject: Set the logger level, too.