Closed sarlinpe closed 5 months ago
from pycolmap import logging logging.set_log_destination(logging.INFO, path / "INFO.log.")
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!
def run(): logging.info("Logging some information.") pycolmap.some_cpp_function() logging.info("Done!")
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!