|
From: Ankur G. <ank...@gm...> - 2007-02-07 18:34:14
|
Hi,
My pattern layout is like this.
%-5p | %-4L | %-10c{1} | %-20M - %m%n
The modules names are quite lengthy.
So the log becomes too messy to read.
For eg.
DEBUG | 851 | Module | Very::Long::Name::Module::method_name -
Value is abcd
but I would prefer
%-5p | %-4L | %-10c{1} | %-20M{1} - %m%n
DEBUG | 851 | Module | method_name - Value is abcd
So can we have the curlies for %M similar to %c.
Log/Log4perl/Layout/PatternLayout.pm
@@ -293,8 +293,6 @@
if($ops eq "c") {
$data = shrink_category($data, $curlies);
- } elsif($ops eq "M") {
- $data = shrink_category($data, $curlies);
} elsif($ops eq "C") {
$data = shrink_category($data, $curlies);
} elsif($ops eq "X") {
--Ankur
|