in reply to Custom cspec's in Net::Log4perl
Hi
I'm not too sure about this, since I'm not famaliar with Log4Perl ...
isn't $session in your main package? If so, try
log4perl.PatternLayout.cspec.s = sub {return $::session->id}
In Section
Seekers of Perl Wisdom