Forum

Author Topic: Logfile  (Read 6350 times)

MMNN

  • Newbie
  • *
  • Posts: 17
    • View Profile
Logfile
« on: February 26, 2016, 01:17:12 PM »
Hi,

I'd like to know if it is possible to set the logfile from python.

The logfile can be set in preferences, but I would like a different logfile for each project so I don't get anything mixed up.

Does anyone know how I can set it from python???


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15369
    • View Profile
Re: Logfile
« Reply #1 on: February 26, 2016, 01:20:50 PM »
Hello MMNN,

You can access to the console pane using
Code: [Select]
console = PhotoScan.ConsolePane()
contents = console.contents #str type
Then the string containing the console output can be saved to the file. When you start another project you can clear the console (console.clear).
Best regards,
Alexey Pasumansky,
Agisoft LLC

MMNN

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Logfile
« Reply #2 on: February 26, 2016, 03:25:07 PM »
Thanks, Alexey, it was just what I needed!