def logger ( message , level = 10 ) : logging . getLogger ( __name__ ) . log ( level , str ( message ) )
change logging format during runtime python
Handle logging .
def logger(message, level=10):
    """Handle logging."""
    logging.getLogger(__name__).log(level, str(message))