[C++]: initial port of LogBuffer and LogAppender