in reply to How do I debug a .pm module

What version of Mail::Audit are you using? That error means the following occurred: $undef->_log(...).