mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-12 08:04:02 +02:00
-> indentation {nb}
This commit is contained in:
@@ -33,10 +33,10 @@ class RotatingFileHandler extends StreamHandler
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $filename
|
* @param string $filename
|
||||||
* @param integer $maxFiles The maximal amount of files to keep (0 means unlimited)
|
* @param integer $maxFiles The maximal amount of files to keep (0 means unlimited)
|
||||||
* @param integer $level The minimum logging level at which this handler will be triggered
|
* @param integer $level The minimum logging level at which this handler will be triggered
|
||||||
* @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 = 0644)
|
||||||
{
|
{
|
||||||
|
@@ -25,13 +25,13 @@ class StreamHandler extends AbstractProcessingHandler
|
|||||||
protected $stream;
|
protected $stream;
|
||||||
protected $url;
|
protected $url;
|
||||||
private $errorMessage;
|
private $errorMessage;
|
||||||
protected $filePermission;
|
protected $filePermission;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $stream
|
* @param string $stream
|
||||||
* @param integer $level The minimum logging level at which this handler will be triggered
|
* @param integer $level The minimum logging level at which this handler will be triggered
|
||||||
* @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($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644)
|
public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644)
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ class StreamHandler extends AbstractProcessingHandler
|
|||||||
$this->url = $stream;
|
$this->url = $stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->filePermission = $filePermission;
|
$this->filePermission = $filePermission;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -68,7 +68,7 @@ class StreamHandler extends AbstractProcessingHandler
|
|||||||
$this->errorMessage = null;
|
$this->errorMessage = null;
|
||||||
set_error_handler(array($this, 'customErrorHandler'));
|
set_error_handler(array($this, 'customErrorHandler'));
|
||||||
$this->stream = fopen($this->url, 'a');
|
$this->stream = fopen($this->url, 'a');
|
||||||
@chmod($this->url, $this->filePermission);
|
@chmod($this->url, $this->filePermission);
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
if (!is_resource($this->stream)) {
|
if (!is_resource($this->stream)) {
|
||||||
$this->stream = null;
|
$this->stream = null;
|
||||||
|
Reference in New Issue
Block a user