Dancer2::Logger::Log4perl released

We’ve been missing a Log4perl plugin for Dancer2 for, well, forever, and this weekend I have released Dancer2::Logger::Log4perl.

This was originally developed by Ryan Larscheidt and Jon Miner at the University of Wisconsin. I have added a minimal test, a little pod, and wrapped a release around it. The rest of this is their work, and I cannot thank them enough for making this happen. Special thanks goes out to Mohammad S Anwar for finding some omissions from my original release earlier this weekend.

There are more tests needed still, but I wanted to get this out in the wild as soon as I could.

If you notice any issues, please report them at

Thanks, and happy dancing!

1 Comment

I cant get log4perl to work. :(
I am calling the Dancer2::Logger::Log4perl
my yaml has:
logger: 'log4perl'
log: 'debug'
config_file: 'log4perl.conf'

my config contains:
log4perl.rootLogger = DEBUG, LOG1
log4perl.appender.LOG1 = Log::Log4perl::Appender::File
log4perl.appender.LOG1.filename = /var/log/log4perl.log
log4perl.appender.LOG1.mode = append
log4perl.appender.LOG1.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.LOG1.layout.ConversionPattern = %d %p %m %n

and my script for testing has:
die if not my $logger = Log::Log4perl->get_logger('tests');
$logger->debug('this is a debug message');

No log file has been generated. There are no errors in my console log or anything having to do with log4perl.

Could you give some advice on what I am missing?

Leave a comment

About Jason A. Crome

user-pic Dancer developer, pilot, and hockey player.