Bug 807817 - Dump Marionette logs as well as writing to logfile, r=philikon
authorJonathan Griffin <jgriffin@mozilla.com>
Thu, 01 Nov 2012 14:49:15 -0700
changeset 112172 577a6ac727ae731777869c865069af6e192d3341
parent 112171 01f5586d220045283bc9e1d9093be9b93e29dc18
child 112173 0574e555e545df03117c04077faf8effdff88d62
push id23798
push userryanvm@gmail.com
push dateSat, 03 Nov 2012 00:06:35 +0000
treeherdermozilla-central@6134edeea902 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs807817
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 807817 - Dump Marionette logs as well as writing to logfile, r=philikon
testing/marionette/components/marionettecomponent.js
--- a/testing/marionette/components/marionettecomponent.js
+++ b/testing/marionette/components/marionettecomponent.js
@@ -18,16 +18,17 @@ function MarionetteComponent() {
   this._loaded = false;
   // set up the logger
   this.logger = Log4Moz.repository.getLogger("Marionette");
   this.logger.level = Log4Moz.Level["All"];
   let logf = FileUtils.getFile('ProfD', ['marionette.log']);
   
   let formatter = new Log4Moz.BasicFormatter();
   this.logger.addAppender(new Log4Moz.FileAppender(logf, formatter));
+  this.logger.addAppender(new Log4Moz.DumpAppender(formatter));
   this.logger.info("MarionetteComponent loaded");
 }
 
 MarionetteComponent.prototype = {
   classDescription: "Marionette component",
   classID: MARIONETTE_CID,
   contractID: MARIONETTE_CONTRACTID,
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver]),