Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to redirect stderr to C lang function

Reply
Thread Tools

How to redirect stderr to C lang function

 
 
Lukas P
Guest
Posts: n/a
 
      09-11-2005
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
 
Reply With Quote
 
 
 
 
Anno Siegel
Guest
Posts: n/a
 
      09-12-2005
Lukas P <> wrote in comp.lang.perl.misc:
> 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
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to redirect stderr to C lang function Lukas Petrlik Perl Misc 1 09-12-2005 05:19 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM
How to redirect stdout&stderr into files in Tomcat 4.1.29 on RedHat 9 ? Java 3 01-11-2004 10:30 PM
redirect stdout & stderr tomcat 4.1 VisionSet Java 6 09-20-2003 01:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57