From: Mike S. <m...@pe...> - 2004-10-26 05:36:54
|
On Mon, 18 Oct 2004 Pet...@ub... wrote: > i have a further problem that will complicate the matter:( > > I have thousands of die and warn statements that i dont intend to > change, so hence the use of logdie and logwarn with the following > signal trap: > > $SIG{__WARN__} = sub { > local $Log::Log4perl::caller_depth = > $Log::Log4perl::caller_depth + 1; > WARN @_; > }; > > $SIG{__DIE__} = sub { > $Log::Log4perl::caller_depth++; > my ($temp) = @_; > $temp =~ s/\n//ig; > LOGDIE $temp; > }; > > given this limitation how can i only log the formatted log4perl > messages and ignore duplicated warn/die messages? Sorry for the slow response ... the signal traps look ok, but I didn't quite get the reference to the duplicated warn/die messages. Can you explain what's duplicated? You might be able to resolve the issue with a custom filter, but I need more details on the problem to suggest a solution. -- Mike Mike Schilli m...@pe... |