views: add log variable, for callback to use

(integrated from trunk branch change c9997fa by Todd Whiteman <toddw@activestate.com>)