Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Return a logger with the specified name, creating it if necessary.

If no name is specified, return the root logger.

        def getLogger(name=None):
    """
    Return a logger with the specified name, creating it if necessary.

    If no name is specified, return the root logger.
    """
    if name:
        return Logger.manager.getLogger(name)
    else:
        return root
        


src/r/e/redsmaster-1.0.2/src/redsmaster/log.py   redsmaster(Download)
from cement.core import backend
 
SERVERLOG = logging.getLogger("SERVERLOG")
SERVERLOG.setLevel(logging.DEBUG)
 

src/p/u/puke-1.5.22/puke/SSH.py   puke(Download)
	def __init__(self):
		logger = paramiko.util.logging.getLogger('paramiko')
		logger.setLevel(logging.ERROR)
		super(SSH, self).__init__()
 

src/s/i/simple-virtuoso-migrate-0.8.3/simple_virtuoso_migrate/ssh.py   simple-virtuoso-migrate(Download)
 
        # Log to a temporary file.
        logger = paramiko.util.logging.getLogger()
        logger.setLevel(logging.WARN)
 

src/s/i/simple-virtuoso-migrate-HEAD/simple_virtuoso_migrate/ssh.py   simple-virtuoso-migrate(Download)
 
        # Log to a temporary file.
        logger = paramiko.util.logging.getLogger()
        logger.setLevel(logging.WARN)
 

src/g/e/gerrit-stream-HEAD/gerrit.py   gerrit-stream(Download)
 
logging.basicConfig(level=logging.INFO)
logger = paramiko.util.logging.getLogger()
logger.setLevel(logging.INFO)