Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-366

The color used to show the TRACE level is too dark for dark terminal

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.2.1.Final
    • 3.2.0.Final
    • core
    • None

      The RGB color (66, 66, 66) which is calculated using the render() method of the class: ColorPatternFormatter to show the TRACE level is too dark when the user is running their quarkus, java applications using a dark terminal

      // see: https://github.com/jboss-logging/jboss-logmanager/blob/e29255a588f7779c661ca96cb41874a8394b33f6/src/main/java/org/jboss/logmanager/formatters/ColorPatternFormatter.java#L187-L196
      
              final int level = Math.max(Math.min(LEVEL, LARGEST_LEVEL), SMALLEST_LEVEL) - SMALLEST_LEVEL;
              r = ((level < 300 ? 0 : (level - 300) * (255 - SATURATION) / 300) + SATURATION) >>> darken;
              g = ((300 - abs(level - 300)) * (255 - SATURATION) / 300 + SATURATION) >>> darken;
              b = ((level > 300 ? 0 : level * (255 - SATURATION) / 300) + SATURATION) >>> darken;
      

        1. left-new-rgb_right-current-rgb.png
          3.13 MB
          Charles Moulliard
        2. Screenshot 2026-02-04 at 08.25.50.png
          17 kB
          Charles Moulliard
        3. Screenshot 2026-02-04 at 08.26.06.png
          19 kB
          Charles Moulliard
        4. Screenshot 2026-02-05 at 08.16.47.png
          185 kB
          Charles Moulliard

              dlloyd@redhat.com David Lloyd
              cmoullia Charles Moulliard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: