datana-gmbh / logz-io-handler
A pre configured handler for logz.io
Installs: 420 224
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 1
Requires
- php: >=8.1
- inpsyde/logzio-monolog: ^2.0
- monolog/monolog: ^2.0 || ^3.0
- oskarstark/trimmed-non-empty-string: ^1.0
- webmozart/assert: ^1.9
Requires (Dev)
- ergebnis/test-util: ^1.4
- phpunit/phpunit: ^9.0
- symfony/string: ^6.0 || ^7.0
README
Please define the following in your config/prod/monolog.yaml
file:
monolog: handlers: main: type: fingers_crossed action_level: error handler: nested excluded_http_codes: [404, 405] buffer_size: 50 # How many messages should be saved? Prevent memory leaks nested: type: stream path: php://stderr level: debug console: type: console process_psr_3_messages: false channels: ["!event", "!doctrine"] + logz.io: + type: fingers_crossed + action_level: error + handler: logz.io_handler + excluded_http_codes: [404, 405] + buffer_size: 50 # How many messages should be saved? Prevent memory leaks + logz.io_handler: + type: service + id: 'Inpsyde\LogzIoMonolog\Handler\LogzIoHandler'