Menu

#2 Config File Parser unable to use permissions

open
nobody
None
5
2004-09-03
2004-09-03
Anonymous
No

Using log4perl and Log::Dispatch::File (or ::FileRotate)
if you attempt to set the .permissions attribute from a
config file, it will fail as it stringifies the permissions which
must be read in octal. I found a workaround, which
is to set the permission via a subroutine... ie:

log4perl.appender.ROOTLOGFILE.permissions= sub { 0666 }

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.