add log function to common-ptero