%n uses the "current value" of $/ --- thus when slurping Log::Log4perl fails to print "%n" correctly.

This test demo's the effect of "local $/;" on Log::Log4perl::Tiny.