Added apr(Apache Portable Runtime) support and test code.

Signed-off-by: shines77 <gz_shines@msn.com>
Added log file output function.

Signed-off-by: shines77 <gz_shines@msn.com>
Merge branch 'next'