in reply to Re^3: Log4perl, Data::Dumper and varname
in thread Log4perl, Data::Dumper and varname

Here is the solution which seems to work for me:

$logger->trace( sub { Data::Dumper->Dump($name, 'name') }, undef, $TRACE, undef, undef );
  • Comment on Re^4: Log4perl, Data::Dumper and varname