There has been a thread on log4php-dev (http://marc.info/?l=log4php- dev&m=118520958818276&w=2) that I'd like to get an opinion from the log4net developers. Basically, the user wishes to allow multiple user accounts to be able to write to the same log file and they are being prevented since the default file permissions set when the first user creates the log file prevents the second user from writing to it. The request was to add a umask or chmod configuration option to FileAppender.

Aside from the point, that simultaneous access to a common log file is unsupported and unreliable in log4j and log4cxx (can't speak for log4net and log4php), are there any facilities in log4net for controlling the file permissions. I didn't see any from reviewing the log4net code, but I assume that one solution would be to specify a <securityContext> for the FileAppender to use a common user.

If you have any comments or advice, either post here or better yet, subscribe to the low-volume log4php-dev mailing list (log4php-dev- [EMAIL PROTECTED]) and post there.

Reply via email to