Add log in lib.