colmap / pycolmap

Python bindings for COLMAP
BSD 3-Clause "New" or "Revised" License
858 stars 125 forks source link

Make glog usable in Python #237

Closed sarlinpe closed 5 months ago

sarlinpe commented 5 months ago

def run(): logging.info("Logging some information.") pycolmap.some_cpp_function() logging.info("Done!")

Output in `path/INFO.log.20240114-232404.3281132`:

I0114 23:24:04.867597 3281132 example.py:run:26] Logging some information. I0114 23:24:08.361011 3281291 some_cpp_file.cc:198] ... I0114 23:24:22.513118 3281132 example.py:run:28] Done!