L
Lukas Petrlik
I was considering the following possibilities:
1) To include logging in the Perl's internal function
util.cerl_write_to_stderr().
This possibility is quite simple, but I would have to modify Perl
sources.
2) To use binmode (STDERR, ":via(myModule)") and call back the logging
function; the disadvantage of this solution is that it would not log most
syntactic errors.
3) To call PerlIO_stdstreams() and assign to PL_perlio[3], before we call
perl_parse().
This third solution is probably the best one, but I will have to fill my
own PerlIO structure and ensure that it will get free()d once and only
once.
Is there a better possibility?
Lukas
1) To include logging in the Perl's internal function
util.cerl_write_to_stderr().
This possibility is quite simple, but I would have to modify Perl
sources.
2) To use binmode (STDERR, ":via(myModule)") and call back the logging
function; the disadvantage of this solution is that it would not log most
syntactic errors.
3) To call PerlIO_stdstreams() and assign to PL_perlio[3], before we call
perl_parse().
This third solution is probably the best one, but I will have to fill my
own PerlIO structure and ensure that it will get free()d once and only
once.
Is there a better possibility?
Lukas