Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)
Return the module path of the NullHandler. Useful for Python < 2.7.
    

        def get_null_handler():
    """ Return the module path of the NullHandler. Useful for Python < 2.7.
    """

    # NullHandler does not exist before Python 2.7
    null_handler_mod = 'logging.NullHandler'
    try:
        from logging import NullHandler
    except ImportError:
        null_handler_mod = 'baboon.common.config.NullHandler'

    return null_handler_mod
        


src/b/a/baboon-0.1.4/baboon/baboond/dictconf.py   baboon(Download)
import sys
import logging
 
from baboon.common.config import get_log_path, get_null_handler
 
        'rootfile': {
            'level': 'DEBUG',
            'class': get_null_handler(),
            'formatter': 'verbose',
        },
        'sleekxmppfile': {
            'level': 'DEBUG',
            'class': get_null_handler(),

src/b/a/baboon-0.1.4/baboon/baboon/dictconf.py   baboon(Download)
import sys
import logging
 
from baboon.common.config import get_log_path, get_null_handler
 
        'rootfile': {
            'level': 'DEBUG',
            'class': get_null_handler(),
            'formatter': 'verbose'
        },
        'sleekxmppfile': {
            'class': get_null_handler(),

src/b/a/baboon-HEAD/baboon/baboond/dictconf.py   baboon(Download)
import sys
import logging
 
from baboon.common.config import get_log_path, get_null_handler
 
        'rootfile': {
            'level': 'DEBUG',
            'class': get_null_handler(),
            'formatter': 'verbose',
        },
        'sleekxmppfile': {
            'level': 'DEBUG',
            'class': get_null_handler(),

src/b/a/baboon-HEAD/baboon/baboon/dictconf.py   baboon(Download)
import sys
import logging
 
from baboon.common.config import get_log_path, get_null_handler
 
        'rootfile': {
            'level': 'DEBUG',
            'class': get_null_handler(),
            'formatter': 'verbose'
        },
        'sleekxmppfile': {
            'class': get_null_handler(),