add two kinds of log implementaion