Adding support for the `log` primitive
WIP