File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ private function __construct()
44
44
* - console => False for no console logging.
45
45
* - file => File name for file logger or false for no
46
46
* file logging.
47
+ * - mode => File permissions mode (default 0660).
48
+ * - dirmode => Directory permissions mode (default 0770).
47
49
* - db => False for no database logging.
48
50
* - mail => False for no email logging.
49
51
* - emailTo => Mail logger recipient.
@@ -170,9 +172,13 @@ protected static function getFileLogger($ident, array $conf)
170
172
: LOG_DIR . '/ ' . strtolower (preg_replace ('/\W/ ' , '_ ' , $ ident ))
171
173
. '.log ' ;
172
174
175
+ $ conf ['mode ' ] = isset ($ conf ['mode ' ]) ? $ conf ['mode ' ] : 0660 ;
176
+ $ conf ['dirmode ' ] = isset ($ conf ['dirmode ' ]) ? $ conf ['dirmode ' ] : 0770 ;
177
+
173
178
$ fileConf = array (
174
179
'append ' => true ,
175
- 'mode ' => 0644 ,
180
+ 'mode ' => $ conf ['mode ' ],
181
+ 'dirmode ' => $ conf ['dirmode ' ],
176
182
'lineFormat ' => $ conf ['lineFormat ' ],
177
183
'timeFormat ' => $ conf ['timeFormat ' ],
178
184
);
You can’t perform that action at this time.
0 commit comments