Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Writing log to file
« previous
next »
Print
Pages: [
1
]
Author
Topic: Writing log to file (Read 2150 times)
Gildas Allaz
Newbie
Posts: 2
Writing log to file
«
on:
April 25, 2018, 12:36:12 PM »
Hello,
Do you have an example of use of the function "log_enable" to save log in a file ?
It's a new option of the version 1.4.2.
Thank you for your help.
Gildas
Logged
Gildas Allaz
Newbie
Posts: 2
Writing log to file
«
Reply #1 on:
April 25, 2018, 12:36:48 PM »
Hello,
Do you have an example of use of the function "log_enable" to save log in a file ?
It's a new option of the version 1.4.2.
Thank you for your help.
Gildas
Logged
paulm
Newbie
Posts: 9
Re: Writing log to file
«
Reply #2 on:
May 30, 2018, 12:51:08 PM »
I would be interested in this as well. Setting log_enable to True and setting a file name in log_path doesn't seem to be enough. And is there an API call to add log messages to the application log from a user script? E.g. app.log("....")
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 14854
Re: Writing log to file
«
Reply #3 on:
June 11, 2018, 08:23:16 PM »
Hello Gildas,
If you need to redirect the terminal output from the OS console to the file you can use the common OS tools. For example:
Code:
[Select]
photoscan.exe -r script.py > D:/log.txt
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Writing log to file
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)