Add callback functionality to logger.
Oops, got bit by hash key order randomization in perl 5.18.