centralize lib logging in log call