Update the code for new version of cppapp lib. Add some logging calls.