I have a webapplication and I want to use a different log for every user, so I can have a \"history\" of what the user did on the system.
This is what I have so far:
I would suggest using a log context information to record the user for any particular action, and include that in your log records.
Then whenever you need the log for a particular user, trawl through the single log file. If you need all the files split, do it when the log rotates. This post-processing will be a lot simpler than keeping an open file for every user concurrently.