I am considering logging business events in a J2EE web application by using Java logging and FileHandler. I am wondering whether that could cause a performance bottleneck, since many log records will be written to the one file. I am doing google searches, but it seems people are not hindered by FileHandler.
What are your experiences and opinions?
Is logging a busy web application to one file with java logging and FileHandler likely to become performance bottleneck?
Thanks for your reply. I should be more specific. I'm not asking about the advantages and disadvantages of logging in general. I am askng about logging from many threads to a single file. It seems that writing to one file is a point that all the threads must synchronise on, and that it could slow them down. The application could lose scalability.
Have you had experience with that?
I have now found x4juli which seems to address writing to multiple files. I will try it out soon.
subject: Can logging using FileHandler be a bottleneck?