fix lib interface in log