my log lib for c/c++