How to read logcat output in C++

How to read logcat output in C++, I need get some log in logcat and send it to server, can anyone help me, thank all.

what about CCLOG ?