Bug 973090 - Factor out the log writing from nsCycleCollectorLogger.