How to redirect stderr to C lang function

L

Lukas P

Hello,

I am currently trying to figure out how to redirect all Perl error
messages to my own logging function. The Perl interpreter is embedded in
my app (written in C), which means that I can modify even the interpreter
itself.

I have found several ways to do it, but none of them seems to be
"proper" way.

Thanks in advance for any advices.

Best regards, Lukas P
 
A

Anno Siegel

Lukas P said:
Hello,

I am currently trying to figure out how to redirect all Perl error
messages to my own logging function. The Perl interpreter is embedded in
my app (written in C), which means that I can modify even the interpreter
itself.

I have found several ways to do it, but none of them seems to be
"proper" way.

The third method you tried is the proper one.

Anno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top