Is there a need to repeatedly open the log file? $logging_logfile seems to be a global variable, so why not instead have a filehandle in a global variable?
That way you can open the file once, set autoflush to true, and then write as you go.
In reply to Re: Is it possible at all to flush buffer and commit file write, if UTF-8 encoding is being used??
by swl
in thread Is it possible at all to flush buffer and commit file write, if UTF-8 encoding is being used??
by dissident
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |