New webmachine logging API.
Merged bug25687 into stable