in reply to Re: Sharing a filehandle with an asynchronous event
in thread Sharing a filehandle with an asynchronous event
This is actually great! To be honest, I've never used Log::Log4perl before, so this got me to doing some testing and reading of the very informative docs. It does what is needed here so I do believe I am going to swap out for this logging distribution in this case. There's even config file directives to eliminate race-type conditions (ie. overlap).
That said, I'm still wondering if there's a real, feasible way to "share" a file handle across procs (forks, really). I don't believe there is, but I'm still open to hear input. Even at a C level, it doesn't appear very trivial to get things to run smoothly all of the time where eliminating overlap can be made consistent.
Update
"I put together a simple example using the default code from the documentation from Async::Event::Interval and your info that you want to log."
That's awesome that you actually tested out the SYNOPSIS of the distribution :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sharing a filehandle with an asynchronous event
by andal (Hermit) on Jan 24, 2018 at 10:48 UTC | |
|
Re^3: Sharing a filehandle with an asynchronous event
by thanos1983 (Parson) on Jan 24, 2018 at 08:39 UTC |