Mock alternative names to log methods and (un)escape

Fixes #14.

Thanks to @msmark for the report and reference implementations.