1

I have a web application, that is build on spring webflow and jsf. Multiple users can log into my application at the same time. Now I want to use log4j to, of course, do the logging.

My question: is it possible to let log4j create different log files for every connected user?

thanks, Nikolaus

2
  • I don't know whether log4j can do it, but logback can (logback.qos.ch -- actually a rewrite of a logging system by the author of log4j himself) Commented Dec 19, 2011 at 20:32
  • sounds good. but is logback really working together with spring webflow? Commented Dec 19, 2011 at 20:59

1 Answer 1

1

No, statically configured log4j cannot do it (unless your user set is constant and known upfront), you'd have to implement something on top of it that would set the configuration programatically.

If logback can do it, as fge says, use it, best not directly, but through slf4j.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.