Add support for onclick functions on Log