[Exim] Logging from embedded perl

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Matthias Waffenschmidt
Date:  
À: exim-users
Sujet: [Exim] Logging from embedded perl
Hi,

If a method in embedded perl is called via ${perl and die method exits
with a die statement, the text of the die statement is logged to the
main and panic log.

However, if I only want to give a warning from within the perl method
either via warn or 'print STDERR', exim doesn't seem to catch the
standard error output of embedded perl.

I've also found no way in perl.c to call a logging subroutine from
embedded perl.

Simply concatenating to the exim log file is potentially dangerous or
at least may result in mixed up log entries.

Has anyone an idea, how logging without dying can be done inside
embedded perl?

--
Gruss / Best regards   |  LF.net GmbH        |  fon +49 711 90074-411
Matthias Waffenschmidt |  Ruppmannstr. 27    |  fax +49 711 90074-33
mw@???              |  D-70565 Stuttgart  |  http://www.lf.net