Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-184

Configuration Changes + XSD

    XMLWordPrintableJSON

Details

    Description

      I'm a first-time user of log4net. At first impression the configuration is very overwhelming. Though I recognize the strength by it's flexibility, I think it's one of the weakest points of log4net. Some simple changes could allow a real XSD to be created and thus to verify configuration and provide helpful context help when tring to create them. I've worked to understand the current configuration and after reading the documentation and reverse engineering the code, I finally have an understanding what to do. It was a long and painful process and I wanted to share that experience with you only so that you could improve the experience for others.

      Namely, I want to suggest that the following change be allowed in future version. Rather than having the 'type=' attribute used on elements (appenders, filters, and layouts) that reflect a built-in component, I would recommend ADDING an alternative way of defining them by using the appender (or fitler/layout) name as the element name much like you already do with the 'param' and class properties. This allows for us to now create full validating XSD files.

      On the effort of creating an XSD file, I have made progress beyond what was previously available. You can find it at the following location:
      http://csharptest.net/downloads/schema/log4net.xsd

      I will be glad to transfer all rights to the project if and when it is distributed with the product.

      Attachments

        Activity

          People

            Unassigned Unassigned
            csharptest.net Roger Knapp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified