Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Split output to STDOUT as well as a file -- multiplexing

by Discipulus (Canon)
on Jan 05, 2016 at 18:03 UTC ( [id://1152000]=note: print w/replies, xml ) Need Help??


in reply to Split output to STDOUT as well as a file

hello razmeth and welcome to the monastery

the key concept behind your question is multiplexing.
Follow in your production code the wiser advices you already received but, in the case you want to explore that way and reinvent the wheel (see my sgnature..) you can have a look at my attempt to do exactly the same thing: Multiplexing log output: Log4perl of the poors
Also Loops's attempt at Output to STDOUT and print last line to console is reach of useful hints.

Hth
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found