Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Change Carp's output to Mojo::Log

by mr_mischief (Monsignor)
on Jun 09, 2022 at 13:35 UTC ( #11144555=note: print w/replies, xml ) Need Help??

in reply to Change Carp's output to Mojo::Log

You already have some excellent advice. I'd be tempted to try using something like Capture::Tiny in the main program to wrap calls to the external module's code. It allows you to capture only stdout, only stderr, both merged, both separately, tee one or both (capture and send to the original destination), and all of this only for the scope of the coderef you choose.

I have not tested the module with Mojo to be sure it works. I would think it's worth trying, as searching the web for the two together does not turn up any dire warnings.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144555]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2022-10-02 07:02 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (8 votes). Check out past polls.