Hi forum,
I'm stuck with log4perl.
I thought to redesign some of the logging that our perl scripts are producing. Heck, I was redesigning some of the scripts itself :-)
Problem: my logfile gets rw-r--r--, and is owned by whatever user started it (typically root or iwui, but could also be any user if I log from impersonated custom menu cgi's, or the workflow instantiator CGI). E.g I now have a module that is called from the .wft file (run as actual user) and from an external task (run as root). Typically, whoever owns the log, locks out anyone else from writing to it.
How do you deal with this?
I noticed that there is a newer version of Log::Log4Perl::Appender::File that allows me to set 'umask'. (the version in vendor/lib is older, and doesn't have that param - but that's fixable). But I was planning to use Log:

ispatch::FileRotate, to have the benefit of rolling logs. Maybe I'll just use the Appender::File with umask 0000 (to get rw-rw-rw-) and rotate the file manually.
thanks for you thoughts!
Fred