Logger for both C++ and Python