bug #36337 [4.4][MonologBridge] Fix $level type (fancyweb)
This PR was merged into the 4.4 branch.
Discussion
----------
[4.4][MonologBridge] Fix $level type
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | https://github.com/symfony/symfony/pull/36334#issue-398177378
| License | MIT
| Doc PR | -
Commits
-------
19a8905d32
[4.4][MonologBridge] Fix $level type
This commit is contained in:
commit
718722d433
@ -49,7 +49,10 @@ class ElasticsearchLogstashHandler extends AbstractHandler
|
||||
private $client;
|
||||
private $responses;
|
||||
|
||||
public function __construct(string $endpoint = 'http://127.0.0.1:9200', string $index = 'monolog', HttpClientInterface $client = null, int $level = Logger::DEBUG, bool $bubble = true)
|
||||
/**
|
||||
* @param string|int $level The minimum logging level at which this handler will be triggered
|
||||
*/
|
||||
public function __construct(string $endpoint = 'http://127.0.0.1:9200', string $index = 'monolog', HttpClientInterface $client = null, $level = Logger::DEBUG, bool $bubble = true)
|
||||
{
|
||||
if (!interface_exists(HttpClientInterface::class)) {
|
||||
throw new \LogicException(sprintf('The "%s" handler needs an HTTP client. Try running "composer require symfony/http-client".', __CLASS__));
|
||||
|
@ -25,7 +25,10 @@ class ServerLogHandler extends AbstractHandler
|
||||
private $context;
|
||||
private $socket;
|
||||
|
||||
public function __construct(string $host, int $level = Logger::DEBUG, bool $bubble = true, array $context = [])
|
||||
/**
|
||||
* @param string|int $level The minimum logging level at which this handler will be triggered
|
||||
*/
|
||||
public function __construct(string $host, $level = Logger::DEBUG, bool $bubble = true, array $context = [])
|
||||
{
|
||||
parent::__construct($level, $bubble);
|
||||
|
||||
|
Reference in New Issue
Block a user