tagadamedia/laravel-opensearchlog

A simple Laravel package to log against Open Search

Installs: 68

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/tagadamedia/laravel-opensearchlog

1.0.8 2025-12-19 12:49 UTC

This package is not auto-updated.

Last update: 2025-12-19 11:49:54 UTC


README

Getting started

This package allows to use a custom logger with an Open Search server

To install it, use composer


composer require tagadamedia/laravel-opensearchlog

After install, you may add a new logger channel in config/logging.php


return [

'channels' => [
    ...
    
    'opensearch' => [
        'driver' => 'custom',
        'via' => \Tagadamedia\OpenSearchLog\Log\OpenSearchLogger::class,
        'level' => 'error',
        'with' => [
            'application' => 'name_of_application',
            'facility' => env('APP_ENV', 'production'),
        ],
        'http' => [
            'endpoint' => secret('OPENSEARCH_LOG', 'URI'),
            'username' => secret('OPENSEARCH_LOG', 'USER'),
            'password' => secret('OPENSEARCH_LOG', 'PASS'),
            'timeout' => (float) secret('OPENSEARCH_LOG', 'TIMEOUT'),
            'connect_timeout' => (float) secret('OPENSEARCH_LOG', 'CONNECT_TIMEOUT'),
        ],
    ],
    
]