[Mailmunge] Logging
Dianne Skoll
dianne at skollsoft.com
Sun Jun 9 13:35:01 EDT 2024
On Sat, 8 Jun 2024 23:29:42 -0700
Kenneth Porter via Mailmunge <mailmunge at lists.mailmunge.org> wrote:
> I'm adapting my MIMEDefang filter to Mailmunge and I don't see
> anything to use for md_syslog and md_graphdefang_log. Does something
> like this exist in MM?
There's no equivalent to md_graphdefang_log, though it should be easy
to whip one up because that's really just normal logging in a specific
format.
For logging, there's Mailmunge::Context::log:
https://mailmunge.org/docs/Mailmunge__Context.php#canonical_first_recipient
Call it as: $ctx->log($level, $msg);
For example: $ctx->log('info', 'The sender was rejected');
Regards,
Dianne.
More information about the Mailmunge
mailing list