On 2011-10-24, Tim Nelson wrote: > My ASP.Net Web services are running fine and logging on Mono using the > RollingFileAppender. However, right now the log files are being > created owned by apache:apache with -rw------- permissions. I'd like > to have log4net generate log files with -rw-r------ (meaning anyone in > the apache group could read the file.
> Is there a way to do this in log4net? I'm afraid there isn't. All log4net does is invoking the FileStream-constructor (the four-arg version) and I don't think the FileShare (which is FileShare.Read by default) should have any influence on the permissions. Probably it is the umask of the apache user that determines them. Stefan