[log4perl-devel] sample rolling log file with explicit log file mode setting?
Hi folks. I'm using log4perl in the obvious way. We have reqs to set the mode of the log file to 0666. using log4perl.appender.PUSHD=Log::Dispatch::FileRotate log4perl.appender.PUSHD.filename=/tmp/pushd.log log4perl.appender.PUSHD.mode=append log4perl.appender.PUSHD.permissions = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH # rotate among 5 log files of 10Mbytes each log4perl.appender.PUSHD.size=100kb log4perl.appender.PUSHD.max=5 results in 5 files of mode 0; permissions=0666 gets passed as a string through the layers, not as an octal number, and results in: --w--wx-wT 1 nobody nobody 1063 Nov 2 12:41 pushd.log* Anyone have a recipe here that works? -- jeff - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ log4perl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/log4perl-devel
[log4perl-devel] set file permissions for Log::Dispatch::FileRotate appender?
Hi folks. I'm using log4perl in the obvious way. We have reqs to set the mode of the log file to 0666. using log4perl.appender.PUSHD=Log::Dispatch::FileRotate log4perl.appender.PUSHD.filename=/tmp/pushd.log log4perl.appender.PUSHD.mode=append log4perl.appender.PUSHD.permissions = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH # rotate among 5 log files of 10Mbytes each log4perl.appender.PUSHD.size=100kb log4perl.appender.PUSHD.max=5 results in 5 files of mode 0; permissions=0666 gets passed as a string through the layers, not as an octal number, and results in: --w--wx-wT 1 nobody nobody 1063 Nov 2 12:41 pushd.log* Anyone have a recipe here that works? -- jeff - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ log4perl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/log4perl-devel
