Tracing: Ported tracing of wikitext escaping to use the logger.

Change-Id: Ia4d8e97485d03fec25689cb62839f2317e54905f