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

Re^2: Log4perl log rotation in threadpool environment ("share")

by rmahin (Beadle)
on Nov 16, 2012 at 18:33 UTC ( #1004230=note: print w/ replies, xml ) Need Help??


in reply to Re: Log4perl log rotation in threadpool environment ("share")
in thread Log4perl log rotation in threadpool environment

Interesting! Wasn't aware ya could do that. Didnt have much luck using this due to the file handle it returned not being a typical file handle. Was able to get stuff to print, but not after I set the handle as a property of the object. Could probably get it to work if I reworked more of the code, but the post below seems to work well. Thanks for you input!


Comment on Re^2: Log4perl log rotation in threadpool environment ("share")
Re^3: Log4perl log rotation in threadpool environment ("share")
by tye (Cardinal) on Nov 16, 2012 at 18:50 UTC

    You open a file with, for example, createFile(), and then get a "typical file handle" via OsFHandleOpen(). (Win32API::File)

    I should just submit a patch to make FILE_SHARE_DELETE be the default for Perl.

    - tye        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-18 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls