logger / logsene
A psr-3 compatible Logsene implementation
1.0.1
2020-06-18 11:48 UTC
Requires
- php: >= 7.1
- ext-json: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/log: ^1.0
Requires (Dev)
- phpstan/phpstan: >= 0.9.2
- phpunit/phpunit: ^7.5
- roave/security-advisories: dev-master
Suggests
- logger/essentials: Advanced logging component library
This package is auto-updated.
Last update: 2024-10-25 06:31:19 UTC
README
A logger for Logsene
Installation
composer require logger/logsene
Example configuration
$url = "https://logsene-receiver.eu.sematext.com/66260a29-f1cc-4121-8b24-058587ba0a80/test/"; $tags = ['test']; $context = ['test' => true]; $httpClientAdapter = null; /// Use the default http-client-adapter $logger = new \Logger\LogseneLogger($url, $tags, $context, $httpClientAdapter); $logger->debug('This is a test-message');