Download the PHP package weijukeji/laravel-openobserve without Composer
On this page you can find all versions of the php package weijukeji/laravel-openobserve. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weijukeji/laravel-openobserve
More information about weijukeji/laravel-openobserve
Files in weijukeji/laravel-openobserve
Package laravel-openobserve
Short Description Laravel package for OpenObserve integration - centralized log management and monitoring
License MIT
Informations about the package laravel-openobserve
Laravel OpenObserve
A Laravel package for integrating with OpenObserve. Send your logs to OpenObserve for centralized log management and monitoring.
한국어 문서
Features
- Seamless integration with Laravel's logging system
- Efficient log transmission via batch processing
- Configurable additional fields on all log entries
- Direct API access through Facade
- Automatic exception information capture (class, message, code, file, line, trace)
- Artisan command for connection testing
Requirements
- PHP 8.3+
- Laravel 11.x, 12.x, or 13.x
Installation
Install the package via Composer:
Publish the configuration file:
Configuration
Add OpenObserve connection details to your .env file:
All Configuration Options
| Option | Env Variable | Default |
|---|---|---|
enabled |
OPENOBSERVE_ENABLED |
false |
url |
OPENOBSERVE_URL |
http://localhost:5080 |
organization |
OPENOBSERVE_ORGANIZATION |
default |
stream |
OPENOBSERVE_STREAM |
default |
auth.email |
OPENOBSERVE_EMAIL |
- |
auth.password |
OPENOBSERVE_PASSWORD |
- |
batch_size |
OPENOBSERVE_BATCH_SIZE |
100 |
timeout |
OPENOBSERVE_TIMEOUT |
5 |
ssl_verify |
OPENOBSERVE_SSL_VERIFY |
true |
additional_fields |
APP_ENV, APP_NAME |
['environment', 'application'] |
Laravel Logging Channel Setup
Add the OpenObserve channel to your config/logging.php:
Set the default log channel in your .env file:
Usage
Laravel Logging
Use it just like standard Laravel logging:
Direct Usage via Facade
Access the OpenObserve client directly through the Facade:
Dependency Injection
Connection Test
Test the connection to OpenObserve using the Artisan command:
This will display your configuration and send a test log entry to verify connectivity.
Testing
Security Vulnerabilities
If you discover a security vulnerability, please email [email protected].
License
The MIT License (MIT). Please see License File for more information.
Credits
- Minhyung Park
- All Contributors
All versions of laravel-openobserve with dependencies
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0