Did I find the right examples for you? yes no

All Samples(17)  |  Call(14)  |  Derive(0)  |  Import(3)

        def set_stream_logger(name, level=logging.DEBUG, format_string=None):
    global log
    if not format_string:
        format_string = "%(asctime)s %(name)s [%(levelname)s]:%(message)s"
    logger = logging.getLogger(name)
    logger.setLevel(level)
    fh = logging.StreamHandler()
    fh.setLevel(level)
    formatter = logging.Formatter(format_string)
    fh.setFormatter(formatter)
    logger.addHandler(fh)
    log = logger
        


src/d/y/dynash-HEAD/dynash/dynash.py   dynash(Download)
    def _onchange_verbose(self, old, new):
        if new:
            boto.set_stream_logger('boto', level=logging.DEBUG)
        else:
            boto.set_stream_logger('boto', level=logging.WARNING)

src/b/o/boto-2.27.0/boto/roboto/awsqueryrequest.py   boto(Download)
        self.connection_args = copy.copy(self.args)
        if 'debug' in self.args and self.args['debug'] >= 2:
            boto.set_stream_logger(self.name())
        required = [p.name for p in self.Params+self.Args if not p.optional]
        for param in self.Params+self.Args:

src/s/p/sparrow-HEAD/deploy/third_party/boto-2.1.1/boto/roboto/awsqueryrequest.py   sparrow(Download)
        self.connection_args = copy.copy(self.args)
        if 'debug' in self.args and self.args['debug'] >= 2:
            boto.set_stream_logger(self.name())
        required = [p.name for p in self.Params+self.Args if not p.optional]
        for param in self.Params+self.Args:

src/d/d/dd-agent-HEAD/checks/libs/boto/roboto/awsqueryrequest.py   dd-agent(Download)
        self.connection_args = copy.copy(self.args)
        if 'debug' in self.args and self.args['debug'] >= 2:
            boto.set_stream_logger(self.name())
        required = [p.name for p in self.Params+self.Args if not p.optional]
        for param in self.Params+self.Args:

src/b/o/botornado-0.0.3/boto/roboto/awsqueryrequest.py   botornado(Download)
        self.connection_args = copy.copy(self.args)
        if 'debug' in self.args and self.args['debug'] >= 2:
            boto.set_stream_logger(self.name())
        required = [p.name for p in self.Params+self.Args if not p.optional]
        for param in self.Params+self.Args:

src/b/o/botornado-HEAD/boto/roboto/awsqueryrequest.py   botornado(Download)
        self.connection_args = copy.copy(self.args)
        if 'debug' in self.args and self.args['debug'] >= 2:
            boto.set_stream_logger(self.name())
        required = [p.name for p in self.Params+self.Args if not p.optional]
        for param in self.Params+self.Args:

src/s/t/storyboard-HEAD/boto/roboto/awsqueryrequest.py   storyboard(Download)
        self.connection_args = copy.copy(self.args)
        if 'debug' in self.args and self.args['debug'] >= 2:
            boto.set_stream_logger(self.name())
        required = [p.name for p in self.Params+self.Args if not p.optional]
        for param in self.Params+self.Args:

src/l/a/lacore-0.1.3/lacore/t/__init__.py   lacore(Download)
from boto import set_stream_logger
from lacore.log import setupLogging
from lacore.date import epoch
from binascii import a2b_hex
from contextlib import contextmanager
def setup():
    set_stream_logger('boto')
    setupLogging(2)
 
 

src/l/a/lacli-0.2.3/lacli/t/__init__.py   lacli(Download)
from boto import set_stream_logger
from lacli.log import setupLogging
from binascii import a2b_hex
from contextlib import contextmanager
from tempfile import mkdtemp
from shutil import rmtree
 
 
def setup():
    set_stream_logger('boto')

src/r/o/roboto-HEAD/roboto/requests/awsqueryrequest.py   roboto(Download)
        try:
            if options.debug:
                boto.set_stream_logger(self.name)
                self.args['debug'] = 2
            self.send()

  1 | 2  Next