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

[PATCH] Improve AnsiColorTerminalAppender to support marking colors as Light

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.10
    • 1.2.12
    • Appenders
    • None
    • Tested on Ubuntu Karmic, with log4net 1.2.10, should work on all Unix environments that speak VT100.

    Description

      The attached patch adds the ability to mark AnsiColors as Light using AnsiAttribute. This fixes a minor glitch in AnsiColorTerminalAppender that would cause AnsiColorTerminalAppender to output a grey-ish color instead of white when BackColor was set to AnsiColor.White by allowing the user to set the proper option of AnsiAttribute.Light and AnsiColor.White, rather than setting BackColor manually to 67 (60 for the light adjustment, 7 for white), and allows more color expressivity.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              severedcross Bojan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: