Page 1 of 1
Asciioutput to users local machine
Posted: Thu Sep 22, 2022 12:06 pm
by MarenC
Hi,
TM1 development is moving more and more to PAW, well in theory anyway!
One of the key tools when developing or sorting out issues is to asciioutput the results. As far as I know you can only output to a drive that the TM1 server has access to.
Given that PAW is a web based tool, and more than likely to be accessed from a users local machine, I think it would be useful to ascii to the local machine, rather than the TM1 server.
Anyone have any thoughts on this, or are their existing ways to make it possible?
Maren
Re: Asciioutput to users local machine
Posted: Thu Sep 22, 2022 12:44 pm
by Steve Rowe
Yup...
#Get the logging directory (Delivered with a trailing slash)
sLogDirPath = GetProcessErrorFileDirectory;
#write the file
asciioutput(sLogDirPath | 'tm1myerror.log', etc....)
Any file that starts tm1 and ends .log will show up in the download logs dialogue on the PAW admin page of the TM1 DB.
Simple when you know how, but some experimentation was required!
Re: Asciioutput to users local machine
Posted: Thu Sep 22, 2022 1:52 pm
by gtonkin
I use two different approaches:
1 -
Drill to the text file
2 - Email the resulting file based on the logged in user. ExecuteCommand in epilog to run the necessary ps script
Where files are big, FTP or RDP to the rich client are options for admins with relevant access.
Re: Asciioutput to users local machine
Posted: Thu Sep 22, 2022 2:00 pm
by MarenC
Hi,
thanks for the feedback, very interesting solutions that I will test at some point!
Still like logging onto the server and just opening from the directory, but good to see the available options and they do have other uses.
Maren
Re: Asciioutput to users local machine
Posted: Thu Sep 22, 2022 4:26 pm
by Wim Gielis
If it’s an IBM cloud environment, the SFTP access with e.g. FileZilla is very easy.
Similar solutions can probably be set up for other systems.
Why not just READ access to the TM1 logging directory through a mapped network drive ?
Re: Asciioutput to users local machine
Posted: Tue Oct 04, 2022 7:01 pm
by vovanenok
For smaller logs, I would just use
LogOutput()
Then you can search the logs using TM1 REST API (or check TeamOne in the commercial subforum:
https://www.tm1forum.com/viewforum.php?f=20)
Another option is to write logs to a custom cube
I also like the drill to file solution proposed by George and mapped network drive proposed by Wim