def newline(logger, nb_blank_lines=1):
 formatter = logging.Formatter(fmt='')
 handler = CustomStreamHandler(formatter=formatter)
 logger.addHandler(handler)
 for i in xrange(nb_blank_lines):
  logger.info('')
 logger.removeHandler(handler)

def newline ( logger , nb_blank_lines = 1 ) : formatter = logging . Formatter ( fmt = '' ) handler = CustomStreamHandler ( formatter = formatter ) logger . addHandler ( handler ) for i in xrange ( nb_blank_lines ) : logger . info ( '' ) logger . removeHandler ( handler )
a simple method to write a real new line to logging .