I have just posted a new draft RFC to alter the wfErrorLog() family of functions to make logged events carry more data and have a common output format [0].
This RFC was started as a part of the current DevOps related work [1] being done by the Platform Core team. Ori, Aaron and I would like to get feedback from the community on this early stage proposal before continuing to work towards a prototype implementation.
We feel that implementing a common and information rich log message output standard will be a helpful step towards removing some of the mystery from the process of monitoring an active wiki. The current variety of log outputs slows down the process of creating log analysis tools. The information provided by a given log message is also largely in the hands of each developer and varies widely not only from component to component but sometimes from commit to commit. The final proposal will describe a common output standard that provides a means to attach common data to all log messages while still allowing each module to add unique data that is needed to diagnose problems at runtime and at scale.
[0]: https://www.mediawiki.org/wiki/Requests_for_comment/Structured_logging [1]: https://www.mediawiki.org/wiki/DevOps_Sprint_2013
Bryan
The RFC on third-party components may interest you: https://www.mediawiki.org/wiki/Requests_for_comment/Third-party_components
If we use the Monolog library, which is used in Symfony and others, we can avoid having to re-implement an entire logging framework.
*-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2016 Major in Computer Science
On Tue, Dec 3, 2013 at 8:32 PM, Bryan Davis bd808@wikimedia.org wrote:
I have just posted a new draft RFC to alter the wfErrorLog() family of functions to make logged events carry more data and have a common output format [0].
This RFC was started as a part of the current DevOps related work [1] being done by the Platform Core team. Ori, Aaron and I would like to get feedback from the community on this early stage proposal before continuing to work towards a prototype implementation.
We feel that implementing a common and information rich log message output standard will be a helpful step towards removing some of the mystery from the process of monitoring an active wiki. The current variety of log outputs slows down the process of creating log analysis tools. The information provided by a given log message is also largely in the hands of each developer and varies widely not only from component to component but sometimes from commit to commit. The final proposal will describe a common output standard that provides a means to attach common data to all log messages while still allowing each module to add unique data that is needed to diagnose problems at runtime and at scale.
Bryan
Bryan Davis Wikimedia Foundation bd808@wikimedia.org [[m:User:BDavis_(WMF)]] Sr Software Engineer Boise, ID irc: bd808 v:415.839.6885 x6855
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Tue, Dec 3, 2013 at 7:07 PM, Tyler Romeo tylerromeo@gmail.com wrote:
The RFC on third-party components may interest you: https://www.mediawiki.org/wiki/Requests_for_comment/Third-party_components
If we use the Monolog library, which is used in Symfony and others, we can avoid having to re-implement an entire logging framework.
It would be relatively easy to implement the features currently described in the structured logging RFC using Monolog. I have used it in the Wikimania Scholarships application [0] to do just that. Depending on the final features desired Monolog may be overkill, but I'm definitely in favor of using more loosely coupled libraries whether they are forked from the MediaWiki codebase or imported from projects with strong user communities.
[0]: https://git.wikimedia.org/tree/wikimedia%2Fwikimania-scholarships.git/HEAD
wikitech-l@lists.wikimedia.org