[Mailmunge] Logging

Kenneth Porter shiva at sewingwitch.com
Sun Jun 9 18:04:26 EDT 2024


On 6/9/2024 10:35 AM, Dianne Skoll via Mailmunge wrote:
> 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.

My next stop was going to be the MD sources to extract that 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');

Exactly what I need! I suggest adding an example call to the example filter.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mailmunge.org/pipermail/mailmunge/attachments/20240609/1ccf5a93/attachment.htm>


More information about the Mailmunge mailing list