Book a Demo

Author Topic: System Output: How to programmatically "Save to File"?  (Read 4370 times)

MichPaule

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
System Output: How to programmatically "Save to File"?
« on: September 02, 2023, 12:01:56 am »
Hello,
my scripts are logging some info using WriteOutput.
It would be good if the contents of the System Output window (or any custom tab created by CreateOutputTab) could be saved to disk automatically at script end.
The users tend to forget that final step ;)
My research didn't reveal any access to the tab contents, but who knows...
Thanks in advance for any pointers!

Michael

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: System Output: How to programmatically "Save to File"?
« Reply #1 on: September 02, 2023, 12:58:46 am »
Since you writeoutput yourself, you might want to write it to file as well (or better, write a function log() that writes to both)

I'm not sure if you can access the contents of an output from the API

Geert

MichPaule

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
Re: System Output: How to programmatically "Save to File"?
« Reply #2 on: September 04, 2023, 05:05:27 pm »
Thanks Geert, looks like I'll have to consider your approach.
What a pity that there is no way to re-use the already existing "Save to File" functionality.

Michael