logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54635] New: Can't truncate priority to first character
Date Tue, 05 Mar 2013 00:53:12 GMT

            Bug ID: 54635
           Summary: Can't truncate priority to first character
           Product: Log4j
           Version: 1.2.17
          Hardware: Macintosh
                OS: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Layout
          Assignee: log4j-dev@logging.apache.org
          Reporter: daniel.lipofsky@nasdaqomx.com
    Classification: Unclassified

I would like to setp a PatternLayout that outputs 1 character per priorty
level, i.e.

debug -> D
info  -> I
warn  -> W
error -> E
fatal -> F

I tried using "%.1p", "%-.1p", "%1.1p", and "%-1.1p" but these all output the
last letter (G, O, N, R, L), which is clearly not what would be desired in this

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message