Add decorator helping to log method calls.

Fixes bug 1201328

Change-Id: I5c3a00c737903aa59cc6a2a248ee61aa53e54fbe
Merge "Add decorator helping to log method calls."