Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
bf22526bc0 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/vendor/
|
/vendor/
|
||||||
|
/composer.lock
|
||||||
|
@ -4,6 +4,7 @@ namespace LogDb\Monolog;
|
|||||||
|
|
||||||
use Monolog\Handler\AbstractProcessingHandler;
|
use Monolog\Handler\AbstractProcessingHandler;
|
||||||
use Monolog\Handler\HandlerInterface;
|
use Monolog\Handler\HandlerInterface;
|
||||||
|
use Monolog\Level;
|
||||||
use Monolog\LogRecord;
|
use Monolog\LogRecord;
|
||||||
use Symfony\Component\HttpClient\HttpClient;
|
use Symfony\Component\HttpClient\HttpClient;
|
||||||
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
||||||
@ -20,8 +21,11 @@ class LogDbHandler extends AbstractProcessingHandler
|
|||||||
private readonly string $serverUrl,
|
private readonly string $serverUrl,
|
||||||
private readonly ?string $scope = null,
|
private readonly ?string $scope = null,
|
||||||
private readonly ?string $source = null,
|
private readonly ?string $source = null,
|
||||||
|
int|string|Level $level = Level::Debug,
|
||||||
|
bool $bubble = true
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
parent::__construct($level, $bubble);
|
||||||
$this->client = HttpClient::createForBaseUri($this->serverUrl);
|
$this->client = HttpClient::createForBaseUri($this->serverUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user