Download the PHP package senzidee/monolog-parseable-handler without Composer
On this page you can find all versions of the php package senzidee/monolog-parseable-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download senzidee/monolog-parseable-handler
More information about senzidee/monolog-parseable-handler
Files in senzidee/monolog-parseable-handler
Package monolog-parseable-handler
Short Description Monolog Handler for send logs to parseable in json through http
License MIT
Homepage https://github.com/senzidee/monolog-parseable-handler
Informations about the package monolog-parseable-handler
Monolog Parseable Handler
A PHP library that provides a Monolog handler for sending logs to Parseable - a cloud-native log analytics platform.
Features
- Clean Architecture: Built with dependency injection and hexagonal architecture principles
- PSR-3 Compliant: Fully compatible with PSR-3 logging standards through Monolog
- Batch Processing: Supports both individual and batch log processing
- Configurable: Flexible configuration for different Parseable instances
- Type Safe: Full PHP 8.1+ type declarations with Psalm static analysis
- Testable: Comprehensive test suite with mocked dependencies
Requirements
- PHP 8.1 or higher
- ext-curl
- Monolog 3.0+
Installation
Install via Composer:
Quick Start
Configuration
Constructor Parameters
The ParseableHandler constructor accepts the following parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
host |
string |
Yes | - | Parseable server hostname (without trailing slash) |
stream |
string |
Yes | - | Target log stream name |
username |
string |
Yes | - | Authentication username |
password |
string |
Yes | - | Authentication password |
port |
int |
No | 8000 |
Parseable server port |
level |
Level\|int\|string |
No | Level::Debug |
Minimum log level to handle |
bubble |
bool |
No | true |
Whether to bubble logs to next handler |
httpClient |
HttpClientInterface |
No | null |
Custom HTTP client (uses cURL by default) |
Example Configurations
Basic Configuration
Production Configuration
For more advanced usage examples, see USAGE.md.
Development
Local Development with Docker
If you don't have PHP installed locally, use the provided Docker setup:
Available Commands
For detailed development information, see DEVELOPMENT.md.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute to this project.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Issues: GitHub Issues
- Documentation: Parseable Documentation
- Monolog: Monolog Documentation