1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 14:46:46 +02:00

Merge pull request #362 from stof/patch-2

Fixed the default file permission for RotatingFile
This commit is contained in:
Jordi Boggiano
2014-04-24 12:57:55 +02:00

View File

@@ -38,7 +38,7 @@ class RotatingFileHandler extends StreamHandler
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
* @param int $filePermissions Optional file permissions (default (0644) are only for owner read/write) * @param int $filePermissions Optional file permissions (default (0644) are only for owner read/write)
*/ */
public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644) public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null)
{ {
$this->filename = $filename; $this->filename = $filename;
$this->maxFiles = (int) $maxFiles; $this->maxFiles = (int) $maxFiles;