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:
The "Nested Diagnostic Context" is meant for such a use case - you can stamp each log statement with an id to identity the user (like an IP address, username, etc)
more here: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/NDC.html
(edit: here another useful post on NDC: When to use 'nested diagnostic context' (NDC)? )