Dear Aaron,
I thought that it was the requrirement from Steffen, that every user has his
own log:
-------snip
The problem is that we want to log the output separately for every user in
his own directory
-------
The file handle problem should also not arise, because I would think that
the log files are closed after writing, or am I wrong?
Thilo
-----Original Message-----
From: Aaron Smuts [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 13. Juni 2001 13:54
To: LOG4J Users Mailing List
Subject: RE: different log files for different users on UNIX
Do the users need to see the log? If not why not just include a user
identifier and parse the log if you need to know information for a specific
user. Sounds like a mess otherwise. You could end up with too many file
handles for the os.
Aaron
-----Original Message-----
From: Thilo Schottelius [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 5:03 AM
To: 'LOG4J Users Mailing List'
Subject: RE: different log files for different users on UNIX
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]