Just when i thought i have some light at the end of the tunnel, i have another problem.
In a loop i execute the following
Environment.SetEnvironmentVariable("CIS_APP_LOG_FILE_LOC", item.BatchLocation, EnvironmentVariableTarget.Process)
The filename for the listener is set to %CIS_APP_LOG_FILE_LOC%\log.log
The log files are being created in the right folder, but the file name never remains log.log.
The following are some examples of the file names i got. ANY idea why this is happening?
Somehow the '\' gets lost before the file name.