PHPackages                             arielblackymetal/endpoint-logger - 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. arielblackymetal/endpoint-logger

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

arielblackymetal/endpoint-logger
================================

Un driver de logging de Laravel para enviar logs a un endpoint.

v2.2.0(8mo ago)014PHPPHP &gt;=8.1

Since Aug 15Pushed 8mo agoCompare

[ Source](https://github.com/ArielBlackymetal/endpoint-logger)[ Packagist](https://packagist.org/packages/arielblackymetal/endpoint-logger)[ RSS](/packages/arielblackymetal-endpoint-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (12)Used By (0)

Endpoint Logger for Laravel
===========================

[](#endpoint-logger-for-laravel)

A Laravel logging driver package for sending logs to a centralized endpoint with support for custom business reporting levels.

Features
--------

[](#features)

- Custom driver for Laravel Logging
- Automatic log sending to HTTP endpoint
- Standard logging levels (debug, info, warning, error, critical)
- **NEW**: Custom levels for business reporting
- WebProcessor included for additional web context information

Custom Levels Available
-----------------------

[](#custom-levels-available)

The package includes custom levels designed for business reporting:

- **INVOICE** (250) - For billing-related logs

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

[](#installation)

1. Install the package via Composer:

```
composer require arielblackymetal/endpoint-logger
```

2. The ServiceProvider will be automatically registered in Laravel.

Configuration
-------------

[](#configuration)

Add a channel in your `config/logging.php` file:

```
'channels' => [
    // ... existing channels ...

    'ax1-info' => [
        'driver' => 'endpoint',
        'url' => 'https://your-endpoint.com/api/logs',
        'level' => 'debug', // Minimum level to capture all logs
    ],

    'ax1-invoice' => [
        'driver' => 'endpoint',
        'url' => 'https://your-endpoint.com/api/logs',
        'level' => 'invoice', // Only captures invoice level and above
    ],
],
```

Usage
-----

[](#usage)

### Standard Levels

[](#standard-levels)

```
Log::channel('ax1-info')->info('Information message');
Log::channel('ax1-info')->error('System error');
Log::channel('ax1-info')->warning('Important warning');
```

### Custom Business Levels

[](#custom-business-levels)

```
// Invoice
Log::channel('ax1-info')->invoice('Sales report generated', ['count' => 2, 'amount' => 150.00]);
```

Payload Structure
-----------------

[](#payload-structure)

Each log sent to the endpoint includes:

```
{
    "severity": 250,
    "log_type": "INVOICE",
    "message": "Invoice transmitted",
    "context": {
        "count": 2,
        "amount": 150.00
    },
    "app_name": "My Application",
    "ocurred_at": "2024-01-15T10:30:00+00:00",
    "metadata": {
        // Additional web context information
    }
}
```

Benefits of Custom Levels
-------------------------

[](#benefits-of-custom-levels)

1. **Smart Filtering**: Configure channels that only capture specific types of business logs
2. **Specific Reporting**: Generate reports based on specific event types
3. **Business Monitoring**: Separate technical logs from business logs
4. **Advanced Analytics**: Enable granular analysis of different business aspects

Advanced Configuration Examples
-------------------------------

[](#advanced-configuration-examples)

### Invoice-Only Channel

[](#invoice-only-channel)

```
'ax1-invoice-only' => [
    'driver' => 'endpoint',
    'url' => 'https://your-endpoint.com/api/invoices',
    'level' => 'invoice', // Only captures invoice logs
],
```

### Channel for All Business Events

[](#channel-for-all-business-events)

```
'ax1-business' => [
    'driver' => 'endpoint',
    'url' => 'https://your-endpoint.com/api/business',
    'level' => 'invoice', // Captures invoice and all levels above
],
```

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10.0
- Monolog &gt;= 3.0

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance60

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~1 days

Total

11

Last Release

255d ago

Major Versions

v1.1.2 → v2.0.02025-08-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/b56046884a360c1487ad996fa2bc2b24802f78dc14291774341741d6660e6f97?d=identicon)[blackymetal](/maintainers/blackymetal)

---

Top Contributors

[![ArielBlackymetal](https://avatars.githubusercontent.com/u/157172484?v=4)](https://github.com/ArielBlackymetal "ArielBlackymetal (14 commits)")

### Embed Badge

![Health badge](/badges/arielblackymetal-endpoint-logger/health.svg)

```
[![Health](https://phpackages.com/badges/arielblackymetal-endpoint-logger/health.svg)](https://phpackages.com/packages/arielblackymetal-endpoint-logger)
```

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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