PHPackages                             litermi/elasticlog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. litermi/elasticlog

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

litermi/elasticlog
==================

A simple hello world composer package

03.5kPHP

Since Jan 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/litermi/elasticlog)[ Packagist](https://packagist.org/packages/litermi/elasticlog)[ RSS](/packages/litermi-elasticlog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Litermi Logger TCP or UDP
=========================

[](#litermi-logger-tcp-or-udp)

A package to send logs to a server via udp or tcp.

It uses the new [Laravel custom log channel](https://laravel.com/docs/master/logging) introduced in Laravel 5.6.

Table of contents
-----------------

[](#table-of-contents)

- [Table of contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
    - [Example](#example)
- [License](#license)

Installation
------------

[](#installation)

Install via [composer](https://getcomposer.org/doc/00-intro.md)

```
composer require litermi/elasticlog:dev-master
```

add row in config/app.php

```
 \Litermi\Elasticlog\ElasticServiceProvider::class
```

publish config

```
php artisan vendor:publish --provider="Litermi\Elasticlog\Providers\ElasticServiceProvider"
```

Edit `config/logging.php` to add the new `logger` logs channel.

```
return [
        'tcp-logger'   => [
            'name'   => 'elastic',
            'driver' => 'custom',
            'via'    => \Litermi\Elasticlog\Services\Logs\SendLogTcpMonolog::class,
        ],
        'udp-logger'     => [
            'driver'  => 'monolog',
            'handler' => \Litermi\Elasticlog\Services\Logs\SendLogUdpJsonHandler::class,
        ],
        'stderr' => [
            'driver'    => 'monolog',
            'handler'   => \Monolog\Handler\StreamHandler::class,
            'formatter' => env('LOG_STDERR_FORMATTER'),
            'with'      => [
                'stream' => 'php://stderr',
            ],
        ],
];
```

Usage
-----

[](#usage)

Once you have modified the Laravel logging configuration, you can send log channel via tcp or udp [as any Laravel log channel](https://laravel.com/docs/master/logging#writing-log-messages).

### Example

[](#example)

```
LOG_CHANNEL=tcp-logger
or
LOG_CHANNEL=udp-logger
```

### UPDATE PACKAGE IN PROJECTS

[](#update-package-in-projects)

```
composer update "litermi/elasticlog"
```

License
-------

[](#license)

litermi elastic is released under the MIT Licence. See the bundled [LICENSE](https://github.com/litermi/elasticlog/blob/master/LICENSE.md) file for details.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/73536c3820a8a906ec83b9a56ebff32aa6ef4529c66efb6a33b42fde1dfb55f2?d=identicon)[litermi](/maintainers/litermi)

---

Top Contributors

[![cirelramos](https://avatars.githubusercontent.com/u/11335197?v=4)](https://github.com/cirelramos "cirelramos (18 commits)")[![litermi](https://avatars.githubusercontent.com/u/56643809?v=4)](https://github.com/litermi "litermi (1 commits)")[![litermi-owner](https://avatars.githubusercontent.com/u/56643809?v=4)](https://github.com/litermi-owner "litermi-owner (1 commits)")

### Embed Badge

![Health badge](/badges/litermi-elasticlog/health.svg)

```
[![Health](https://phpackages.com/badges/litermi-elasticlog/health.svg)](https://phpackages.com/packages/litermi-elasticlog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
