How to redirect stderr to C lang function

Discussion in 'Perl Misc' started by Lukas P, Sep 11, 2005.

  1. Lukas P

    Lukas P Guest

    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
     
    Lukas P, Sep 11, 2005
    #1
    1. Advertising

  2. Lukas P

    Anno Siegel Guest

    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.
     
    Anno Siegel, Sep 12, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VisionSet
    Replies:
    6
    Views:
    9,662
    Sudsy
    Sep 20, 2003
  2. Guest
    Replies:
    3
    Views:
    1,203
    Guest
    Jan 11, 2004
  3. newgene
    Replies:
    0
    Views:
    859
    newgene
    Jul 28, 2003
  4. Sal
    Replies:
    1
    Views:
    843
  5. Lukas Petrlik

    How to redirect stderr to C lang function

    Lukas Petrlik, Sep 12, 2005, in forum: Perl Misc
    Replies:
    1
    Views:
    116
    Matija Papec
    Sep 12, 2005
Loading...

Share This Page