Forum

Author Topic: log file in a standalone script  (Read 5313 times)

gilrito

  • Newbie
  • *
  • Posts: 20
    • View Profile
log file in a standalone script
« on: February 25, 2020, 09:01:26 PM »
Dear all,

It is possible to write the log of MetaShape to a file in a standalone python script?

Thanks, Gil

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15691
    • View Profile
Re: log file in a standalone script
« Reply #1 on: February 26, 2020, 08:56:15 PM »
Hello Gil,

Have you tried redirecting of the script run outputs with the terminal command parameters? (note that you may need to define stdout and stderr outputs).

Like metashape.exe -r script.py > log.txt
Best regards,
Alexey Pasumansky,
Agisoft LLC

gilrito

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: log file in a standalone script
« Reply #2 on: February 29, 2020, 01:37:38 AM »
Hi Alex,

I'm using Spyder as my python IDE. So it will be great if I could have a log file for the outputs of metashape processes.

Regards, Gil

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15691
    • View Profile
Re: log file in a standalone script
« Reply #3 on: March 08, 2020, 07:06:46 PM »
Hello Gil,

The processing log can be intercepted as stdout and stderr streams.
Best regards,
Alexey Pasumansky,
Agisoft LLC