Hi Alan
Thanks for the response, even if my question didn't make sense! You have solved my issue, which I will try and doco here... let me know if this does make sense!
We as a team (6) have a single integrated development instance with the server name of TELCO, each developer has their own instance to "play" in which is named their name.
We have a number of concurrent releases being developed at the moment, each at a different stage in the SDLC, so each of these require their own instance in the test environment, with different deployments being sent to different environments. These all write back to a common custom log file during processing that indicates the start and end time of each process.
When multiple instances are running concurrently, they all out put the same so you get something that looks like this:
2011-03-22 16:43:37 Process 1 Started
2011-03-22 16:44:31 Process 1 Started
2011-03-22 16:45:56 Process 1 Started
2011-03-22 16:53:37 Process 1 Completed
2011-03-22 16:54:31 Process 1 Completed
2011-03-22 22:55:56 Process 1 Completed
with no way of knowing which one took a really long time
Thanks to the info you gave I was able to update a control cube with instance, without having to update it manually everytime an instance was copied by adding a call to this process at the beginning of the overnight process:
Code: Select all
#****Begin: Generated Statements***
#****End: Generated Statements****
sLogDirectory = GetProcessErrorFileDirectory;
#Use the fact the log ditrectory is always in e:\data\project\tm1\logs\
nLogDirLength = (LONG('e:\data\project\tm1\logs\') +1);
sInstance = SUBST(sLogDirectory , nLogDirLength, (LONG(sLogDirectory) - nLogDirLength));
CellPutS(sInstance , 'Control Cube','Server Name','String');
Then in the log file writing process adding the server name to the beginning of each line:
Code: Select all
sServerName = CELLGETS('Control Cube','Server Name','String');
vCompleteMsg = sServerName|' '|TODAY(1)|' '|TIMST(NOW(), '\h:\i:\s')|' '|pMessage;
So Now my combined error log looks like this:
TELCO1 2011-03-22 16:43:37 Process 1 Started
TELCO2 2011-03-22 16:44:31 Process 1 Started
TELCO3 2011-03-22 16:45:56 Process 1 Started
TELCO2 2011-03-22 16:53:37 Process 1 Completed
TELCO3 2011-03-22 16:54:31 Process 1 Completed
TELCO1 2011-03-22 22:55:56 Process 1 Completed
Thanks again for the help