RECENT POSTS

P5-test-log-log4perl

May 26, 2018

Test log4perl

TestLogLog4perl can be used to test that you’re logging the right thing with LogLog4perl. It checks that we get what, and only what, we expect logged by your code.

The basic process is very simple. Within your test script you get one or more loggers from TestLogLog4perl with the get_logger method just like you would with LogLog4perl. You’re going to use these loggers to declare what you think the code you’re going to test should be logging.

WWW http//search.cpan.org/dist/Test-Log-Log4perl/