Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- Type declarations for parameters and return types.
### Changed
- Upgrade `graylog2/gelf-php` dependency to v2.
### Removed
- **BC break**: Removed support for PHP versions <= v8.0 as they are no longer
[actively supported](https://php.net/supported-versions.php) by the PHP project.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php": "^8.1",
"ext-json": "*",
"psr/log": "^2 || ^3",
"graylog2/gelf-php": "^1.3",
"graylog2/gelf-php": "^2",
"symfony/console": "^6 || ^7"
},
"autoload": {
Expand Down
4 changes: 3 additions & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public function createGelfLogger(string $name, array $config): \Gelf\Logger
$transport = new \Gelf\Transport\UdpTransport($host, $port);
$messagePublisher = new \Gelf\Publisher($transport);

return new \Gelf\Logger($messagePublisher, $name);
return new \Gelf\Logger($messagePublisher, [
'facility' => $name,
]);
}
}