Add logging as an effect