LogStream conversion of opentxs-script main.cpp