Update C/C++ demos to support new Logger API