Dynamic Log creation for individual workflow

Hi Everyone,
I’m using a highly available AAP2.4 cluster. Trying to create a dynamic custom log for each workflow.

Case Scenario:

  1. One custom ee is mapped with 4 different workflows. log path is mapped to /Ansible_log/inf_worlflow/ansible.log.
  2. Here I’m trying to find a way to use the same execution environment for all 4 workflows and my log needs to be sent to a different log path dynamically.
  3. I tried to give shell env in the log path. but I couldn’t pass the shell variable inside the container for the particular workflow execution.
  4. Tried to pass for job env but it taking for all the jobs. I’m looking for individual env for each workflow.

I required some guidance here.