parameters: (verbose_level)
docstring: Output content controlled by the verbosity level.
docstring_summary: Output content controlled by the verbosity level.
docstring_tokens: Output content controlled by the verbosity level .
function: def initialize_logging(verbose_level):
      """ Output content controlled by the verbosity level. """
  
      import sys
      import os.path
      import logging
      level = logging.WARNING - min(logging.WARNING, (10 * verbose_level))
  
      if verbose_level <= 3:
          fmt_string = '{0}: %(levelname)s: %(message)s'
      else:
          fmt_string = '{0}: %(levelname)s: %(funcName)s: %(message)s'
  
      program = os.path.basename(sys.argv[0])
      logging.basicConfig(format=fmt_string.format(program), level=level)
function_tokens: def initialize_logging ( verbose_level ) : import sys import os . path import logging level = logging . WARNING - min ( logging . WARNING , ( 10 * verbose_level ) ) if verbose_level <= 3 : fmt_string = '{0}: %(levelname)s: %(message)s' else : fmt_string = '{0}: %(levelname)s: %(funcName)s: %(message)s' program = os . path . basename ( sys . argv [ 0 ] ) logging . basicConfig ( format = fmt_string . format ( program ) , level = level )