PHPAPI-18: fixed initial logging implementation