Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.2 Maintenance Release
    • Component/s: Appenders, Core
    • Labels:
      None
    • Environment:
      From sourceforge - 775738 - Daniel Cazzulino (kzu) - dcazzulino

      Description

      I'm writing a front-end to log4net (which I will
      probably contribute to the project) and I have to
      resort to direct XML manipulation of a log4net.config
      file in order to change settings.

      It would be great if appenders, loggers and layouts
      have XML serialization attributes so I can load/save
      them directly from a file.

      I know the DOMHierarchyConfigurator.ParseLogger can do
      the load part, but there's no way to save changes back
      to XML (unless not without manually writing it). Worse,
      all constants to write it are private .

      Maybe you should follow the WSE style, defining an
      ElementNames class with all string constants for
      elements, and an AttributeNames class with all valid
      attribute names. This way, any third-party developer
      can generate and load valid log4net configuration files.

      Daniel Cazzulino (kzu) - dcazzulino

        Issue Links

          Activity

          Stefan Bodewig made changes -
          Fix Version/s 1.2 Maintenance Release [ 12317606 ]
          Nicko Cadell made changes -
          Link This issue is duplicated by LOG4NET-104 [ LOG4NET-104 ]
          Nicko Cadell made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Description I'm writing a front-end to log4net (which I will
          probably contribute to the project) and I have to
          resort to direct XML manipulation of a log4net.config
          file in order to change settings.

          It would be great if appenders, loggers and layouts
          have XML serialization attributes so I can load/save
          them directly from a file.

          I know the DOMHierarchyConfigurator.ParseLogger can do
          the load part, but there's no way to save changes back
          to XML (unless not without manually writing it). Worse,
          all constants to write it are private :(.

          Maybe you should follow the WSE style, defining an
          ElementNames class with all string constants for
          elements, and an AttributeNames class with all valid
          attribute names. This way, any third-party developer
          can generate and load valid log4net configuration files.

          Daniel Cazzulino (kzu) - dcazzulino
          I'm writing a front-end to log4net (which I will
          probably contribute to the project) and I have to
          resort to direct XML manipulation of a log4net.config
          file in order to change settings.

          It would be great if appenders, loggers and layouts
          have XML serialization attributes so I can load/save
          them directly from a file.

          I know the DOMHierarchyConfigurator.ParseLogger can do
          the load part, but there's no way to save changes back
          to XML (unless not without manually writing it). Worse,
          all constants to write it are private :(.

          Maybe you should follow the WSE style, defining an
          ElementNames class with all string constants for
          elements, and an AttributeNames class with all valid
          attribute names. This way, any third-party developer
          can generate and load valid log4net configuration files.

          Daniel Cazzulino (kzu) - dcazzulino
          Hide
          Nicko Cadell added a comment -

          This issue is outside the current scope for log4net development. Changing the priority to Minor.

          Show
          Nicko Cadell added a comment - This issue is outside the current scope for log4net development. Changing the priority to Minor.
          Nicko Cadell made changes -
          Field Original Value New Value
          Link This issue is depended upon by LOG4NET-12 [ LOG4NET-12 ]
          Hide
          Nicko Cadell added a comment -

          A config editor requires a way of loading and saving the config file.

          Show
          Nicko Cadell added a comment - A config editor requires a way of loading and saving the config file.
          Nicko Cadell created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Nicko Cadell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development