Dear Steffen,

one solution would be to create a category for every user:

String user="xyz"
myCat=Category.getInstance("myClass"+user);

Then you can add the file appender for this category concerning to the users
home directory. You may receive the user name from your servlet or via JAVA
call:

 name = System.getProperty("user.name");
 
Thilo       
-----Original Message-----
From: Steffen Schlachter [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 12. Juni 2001 10:48
To: '[EMAIL PROTECTED]'
Subject: different log files for different users on UNIX


Hi!

We are using log4j with Tomcat. We are currently using multiple instances of
Tomcat on one UNIX box with one properties file. The problem is that we want
to log the output separately for every user in his own directory. So the
question is:

Is there anything like

log4j.appender.A1.File=/export/home/$USER/logfile.log

where I can specify that the output for logging goes to a user specific
directory, i.e. $USER being an environment variable on UNIX. (We're
currently running SunOS.)

Thanks a lot for you help,

   Steffen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to