Page 1 of 1

Access to logging folder via TI

Posted: Sat Jun 19, 2010 4:14 pm
by IanB
Hi all
I was contemplating creating custom logging of TI process activity - to capture parameters etc
I could hard-code the path to the logging folder - but thought it would be better to pick up the logging path from the system - as declared in tm1s.cfg

Any ideas? I didn't see anything in TI variables

Thanks
IanB

Re: Access to logging folder via TI

Posted: Sat Jun 19, 2010 5:54 pm
by Michel Zijlema
There is a TI function available for this:
GetProcessErrorFileDirectory

This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.

This function returns the full pathname, with trailing slash, of the directory where TurboIntegrator process error files are written. (By default, all process error log files are written to the data directory of the server on which the process resides.)
Syntax

GetProcessErrorFileDirectory;

Arguments

None.
Michel