Allow logging with macgap.app.log

I couldn't find an obvious way to access what's gets written to console.log, so I added this helper function.