Log4net
  1. Log4net
  2. LOG4NET-223

[PATCH] Improve AnsiColorTerminalAppender to support marking colors as Light

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.12
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      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.

        Issue Links

          Activity

          Bojan created issue -
          Hide
          Bojan added a comment -

          Aforementioned patch.

          Show
          Bojan added a comment - Aforementioned patch.
          Bojan made changes -
          Field Original Value New Value
          Attachment light-adjustment.patch [ 12413135 ]
          Stefan Bodewig made changes -
          Link This issue is duplicated by LOG4NET-222 [ LOG4NET-222 ]
          Stefan Bodewig made changes -
          Fix Version/s 1.2 Maintenance Release [ 12317606 ]
          Hide
          Stefan Bodewig added a comment -

          patch applied with svn revision 1197625

          Thanks!

          Show
          Stefan Bodewig added a comment - patch applied with svn revision 1197625 Thanks!
          Stefan Bodewig made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.2.12 [ 12318546 ]
          Fix Version/s 1.2 Maintenance Release [ 12317606 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          846d 23h 15m 1 Stefan Bodewig 04/Nov/11 16:18

            People

            • Assignee:
              Unassigned
              Reporter:
              Bojan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development