Logging to custom file

We would like to pipe logs of a job ( including all pipelines executed by the job) to a job specific log file. has anyone done anything like this, if yes, can you share your experience please?