Forum

Author Topic: Python wrapper configure logging output  (Read 1626 times)

FrancoCorleone

  • Newbie
  • *
  • Posts: 13
    • View Profile
Python wrapper configure logging output
« on: October 28, 2022, 03:09:37 PM »
Hey,
I'm struggling with setting up the intercepting mechanism for logging. I don't like how it's done currently, and maybe you can nudge me in the right direction.
Basically, I have a running process, that creates 3d models one after another using Python Wheel Package. I'm not using GUI!
I want each model to be processed and logs saved in separate file so I could then upload the results to my server for further investigation. Also it's possible for two models to be processed at the same time, so I'd rather avoid any GLOBAL settings. Ideally, we should be able to pass an instance of logger to Metashape script.

I don't want to use any linux piping or anything like that. Gotta be python native in that sense.
Greetings