title: Protractor: Logging Actions
body: <p>I have been given a requirement to log all actions that protractor. Something along the lines of </p>
  
  <pre><code>console.log(action + " was called with arguments " + args.join(", ");
  </code></pre>
  
  <p>My first effort was to wrap the globally available browser.driver in a Proxy object then use this proxied object in my tests, and log the action before passing the call on to the target. This works for methods such as "get" however this does not seem to capture events such as click, and sendKeys. I tried wrapping the globally available element function in a Proxy as well however this didn't work and only seemed to randomly output the "all" method being called.</p>
  
  <p>Is there an easy way to log the webdriver actions which are called?</p>