Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def init_logging(options):
    if hasattr(logging, '_bb_init'):
        return
    level = logging.INFO
    if options.verbose:
        level = logging.DEBUG
    logging.basicConfig(level=logging.DEBUG,
                        format='%(asctime)s %(levelname)-8s %(message)s',
                        datefmt='%m-%d %H:%M:%S',
                        filename=options.logfile,
                        filemode='w')
    console = logging.StreamHandler()
    console.setLevel(level)
    formatter = logging.Formatter('%(message)s')
    console.setFormatter(formatter)
    logging.getLogger('').addHandler(console)
    logging._bb_init = True
    print "Logging to " + options.logfile
        


src/b/e/benchbase-1.1.0/benchbase/main.py   benchbase(Download)
import sys
from optparse import OptionParser, TitledHelpFormatter
from util import get_version, init_logging
from command import *
 
 
    options, args = parser.parse_args(argv)
    init_logging(options)
    if len(args) == 1:
        parser.error("Missing command")

src/b/e/benchbase-HEAD/benchbase/main.py   benchbase(Download)
import sys
from optparse import OptionParser, TitledHelpFormatter
from util import get_version, init_logging
from command import *
 
 
    options, args = parser.parse_args(argv)
    init_logging(options)
    if len(args) == 1:
        parser.error("Missing command")

src/j/e/jenkviz-HEAD/jenkviz/main.py   jenkviz(Download)
import sys
from optparse import OptionParser, TitledHelpFormatter
from util import get_version, init_logging
from command import *
 
    if options.explore:
        options.direct = False
    init_logging(options)
    if len(args) == 1:
        parser.error("Missing command")