Added override for the console.log replacement.

When testing on mobile hardware the actual console may not always be
accessible.