(loginitfunc)
call in settings.py after importing localsettings to initialize logging.
    ensures that logging is only initialized once. 'loginitfunc' actually does
    the initialization
call in settings.py after importing localsettings to initialize logging.
    ensures that logging is only initialized once. 'loginitfunc' actually does
    the initialization
call in settings . py after importing localsettings to initialize logging . ensures that logging is only initialized once . loginitfunc actually does the initialization
def initialize_logging(loginitfunc):
    """call in settings.py after importing localsettings to initialize logging.
    ensures that logging is only initialized once. 'loginitfunc' actually does
    the initialization"""
    if not hasattr(logging, '_initialized'):
        loginitfunc()
        logging.info('logging initialized')
        logging._initialized = True
def initialize_logging ( loginitfunc ) : if not hasattr ( logging , '_initialized' ) : loginitfunc ( ) logging . info ( 'logging initialized' ) logging . _initialized = True