filename = os.path.join(ldir, fname)
with nostdout():
    ip.run_line_magic('logstart', '-o %s append' % filename)
How can I log IPython's output without the ugly 7 lines of logging-info on every load?