java - Log4j define length for combined pattern -


is possible define overall length in layout pattern combination of 2 or more conversion characters?

right use

<patternlayout>     <pattern>[%-5level] | {%c{1}::%m (line %4l)} | %msg%n</pattern> </patternlayout> 

but want define overall length (width) of complete expression

 {%c{1}::%m (line %4l)} 

how can achieved?

that impossible patterns according patternlayout manual

you can test patterns here: online tester


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -