def _redirect_eliot_logs_for_trial():
    import os
    import sys
    if os.path.basename(sys.argv[0]) == "trial":
        from eliot.twisted import redirectLogsForTrial
        redirectLogsForTrial()
Enable Eliot logging to the ``_trial/test.log`` file.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/__init__.py/_redirect_eliot_logs_for_trial