Add logging to views