PHPackages                             hmoreira10/logsnag-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. hmoreira10/logsnag-logger

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

hmoreira10/logsnag-logger
=========================

Canal de log personalizado do Laravel para envio ao LogSnag via HTTP

3376PHP

Since May 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hmoreira10/logsnag-laravel)[ Packagist](https://packagist.org/packages/hmoreira10/logsnag-logger)[ RSS](/packages/hmoreira10-logsnag-logger/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

LogSnag Logger for Laravel
==========================

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

A custom Laravel logging channel that sends logs directly to the LogSnag API via HTTP using Monolog.

---

Description
-----------

[](#description)

This package provides an easy way to integrate Laravel's logging system with [LogSnag](https://logsnag.com/), allowing you to send structured log events directly to your LogSnag project. It leverages Monolog's custom handlers and Laravel's logging channels for seamless integration.

---

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

[](#installation)

Install the package via Composer:

```
composer require hmoreira10/logsnag-logger:dev-main
```

---

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

[](#configuration)

Add the custom log channel to your `config/logging.php` file:

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

    'logsnag-your-channel' => [
        'driver' => 'custom',
        'via' => LogSnag\Logger\LogSnagLogger::class,
        'level' => 'info',
        'token' => env('LOGSNAG_TOKEN'),
        'project' => env('LOGSNAG_PROJECT'),
        'channel' => 'your-channel'
    ],
],
```

Then add the required environment variables to your `.env` file:

```
LOGSNAG_TOKEN=your-logsnag-api-token
LOGSNAG_PROJECT=your-logsnag-project
```

---

Usage
-----

[](#usage)

Use the custom log channel in your Laravel application like this:

```
use Illuminate\Support\Facades\Log;

Log::channel('logsnag')->info('Important event happened', [
    'notify' => false
    'icon' => '💰',
]);
```

---

Notes
-----

[](#notes)

- Logs are sent synchronously.
- Customize `notify`, `channel`, and `icon` via context.
- Requires Laravel 10+ and PHP 8.1+.

---

License
-------

[](#license)

MIT License

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/54457164?v=4)[Hugo Moreira](/maintainers/hmoreira10)[@hmoreira10](https://github.com/hmoreira10)

---

Top Contributors

[![hmoreira10](https://avatars.githubusercontent.com/u/54457164?v=4)](https://github.com/hmoreira10 "hmoreira10 (5 commits)")

### Embed Badge

![Health badge](/badges/hmoreira10-logsnag-logger/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.6k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M278](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M345](/packages/open-telemetry-sdk)

PHPackages © 2026

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