Labs/JS Modules: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 45: Line 45:
  logger.debug("Details about bad thing only useful during debugging");
  logger.debug("Details about bad thing only useful during debugging");


The implementation is much less comprehensive than what you might see in the log4* projects at Apache, however.  For example, support for serializing the logging configuration or reading it in is non-existent.  Also, note that this module used to be an XPCOM component and that influenced some of the interface design (e.g., Service.newAppender()).  That will change in the future.
The implementation is much less comprehensive than what you might see in the log4* projects at Apache, however.  For example, support for serializing the logging configuration or reading it in is non-existent.  Also, note that this module used to be an XPCOM component and that influenced some of the interface design (e.g., Service.newAppender() instead of making a new Appender() directly).  That will change in the future.


Get it here:
Get it here:
* [http://hg.mozilla.org/labs/weave/index.cgi/file/8e3d60172f32/modules/log4moz.js log4moz.js] - Adorned
* [http://hg.mozilla.org/labs/weave/index.cgi/file/8e3d60172f32/modules/log4moz.js log4moz.js] - Adorned
* [http://hg.mozilla.org/labs/weave/index.cgi/raw-file/8e3d60172f32/modules/log4moz.js log4moz.js] - Raw (right-click to save)
* [http://hg.mozilla.org/labs/weave/index.cgi/raw-file/8e3d60172f32/modules/log4moz.js log4moz.js] - Raw (right-click to save)
946

edits

Navigation menu