Bug 54635 - Can't truncate priority to first character
Summary: Can't truncate priority to first character
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Layout (show other bugs)
Version: 1.2.17
Hardware: Macintosh Mac OS X 10.4
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 00:53 UTC by Dan Lipofsky
Modified: 2013-03-05 00:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Lipofsky 2013-03-05 00:53:12 UTC
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 case.