#perl_noob has asked for the wisdom of the Perl Monks concerning the following question:
I am using log4perl for logging to a Screen Appender. The issue that I am facing is if there is a relatively large message, when it gets printed on the terminal, a word in broken down and printed in two separate lines like log4perl is printed as log4\nperl.
I am able to partition the message and it prints well. But when tags (%p %d %F etc.) are introduced before %m in pattern layout, it breaks the word while printing. I want to get the length of the contents that were printed before %m to modify the partition method accordingly.
Any leads would be helpful. Would prefer a way other than reserving characters for the placeholders since any one can change the pattern layout in the config file. Thank you.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Print a partitioned log4perl message with proper indent
by Anonymous Monk on Apr 17, 2017 at 06:49 UTC |