in reply to Is it possible at all to flush buffer and commit file write, if UTF-8 encoding is being used??

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.

  • Comment on Re: Is it possible at all to flush buffer and commit file write, if UTF-8 encoding is being used??
  • Download Code