pass instance of std::ostream for logging from API