First off, thanks to everyone who took the time to reply to my original blog post. Several people pointed me to moz4js, and I’m quite pleasantly surprised to find out the Mozilla Thunderbird team uses it quite a bit. I hadn’t heard of it, but when I did through the comments, I found it had the same problem NSPR logging has: single language support.
No, I’m not signing up to own the toolkit moz4js bug. I’m not wholly convinced, personally, it’s the right way to do logging. What I do think, though, is that we need a general discussion on logging API’s and consumers.
In the bug, Flock mentioned their own API – which I also didn’t know about. I mentioned Skyfire has an internal logging system. It makes me wonder how many other companies and projects (Songbird, Komodo, Disruptive Innovations, etc.) have implemented their own logging API’s. This is one subject that reasonably affects the whole Mozilla developer community.
If MozPad were still active, this is one subject I’d put right to them and develop a standard logging API for. Since we don’t have MozPad anymore, I would like to put it to the community at large:
- What do you require logging for?
- What logging capabilities do you need?
- What logging infrastructure (API, code) have you already implemented or used?
- What tests exist and pass for the logging infrastructure you use?
- How extensively do you use your logging infrastructure?
- How easy is it to work with your logging infrastructure?
- If you use someone else’s logging infrastructure, what’s missing?
- Are you willing to work on getting your logging infrastructure into the Mozilla code base? (Writing code, tests, specifications)
- Are you willing to work on developing a common Mozilla standard logging API and infrastructure, and getting that into the Mozilla code base? (Writing code, tests, specifications)
- Are you willing to actively “own” and drive an effort towards adding a Mozilla standard logging API to the Mozilla code base?
Please reply in the comments. The quality and quantity will tell me how seriously I should be taking this.