29.09.2011, 18:49
I doubt the log writing happens in a different thread and apparently the log file is opened and closed every time some MySQL function is called. But I doubt it is the cause of any notable lag and I think you'll rather benefit from the logging function.