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

Allow default null text,"(null)", and default not available text, "NOT AVAILABLE", to be configurable.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.2.10
    • None
    • None

    Description

      "(null)" and "NOT AVAILABLE" are not settable by the user. Allow them to be settable via AppSettings keys:

      <add key="log4net.NullText" value="NULL-TEXT" />
      <add key="log4net.NotAvailableText" value="NOT-AVAILABLE-TEXT" />

      or attributes on the log4net node:

      <log4net nullText="NULL-TEXT" notAvailableText="NOT-AVAILABLE-TEXT">
      ...
      </log4net>

      or in code:

      log4net.Util.SystemInfo.NullText = "NULL-TEXT";
      log4net.Util.SystemInfo.NotAvailableText = "NOT-AVAILABLE-TEXT";

      Attachments

        Activity

          People

            ron liu ron
            ron liu ron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: