logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Schottelius <Thilo.Schottel...@impress.com>
Subject RE: different log files for different users on UNIX
Date Wed, 13 Jun 2001 12:11:39 GMT
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:aaron.smuts3@verizon.net]
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:Thilo.Schottelius@impress.com]
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:Steffen.Schlachter@ctp.com]
Sent: Dienstag, 12. Juni 2001 10:48
To: 'log4j-user@jakarta.apache.org'
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: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message