logging: Provide lg_perror and lg_vperror