[logback-user] Please someone explain %c layout pattern to me

Lukas Zapletal lzap at seznam.cz
Fri Feb 27 14:43:18 CET 2009

I cant clearly  understand the documentation of the conversion word %c


I thought %c{10} will always return string at maximum length 10 but
its obviously not true. In the JUnit test "hello.world" is abbreviated
"h.world" while length set to 1.

Seems its a maximum length of the string before the last dot?!?


Lukas Zapletal
View this message in context: http://www.nabble.com/Please-someone-explain--c-layout-pattern-to-me-tp22246135p22246135.html
Sent from the Logback User mailing list archive at Nabble.com.

More information about the Logback-user mailing list