PHPackages                             nix-logger/nix-logger-laravel - 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. nix-logger/nix-logger-laravel

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

nix-logger/nix-logger-laravel
=============================

Nix Logger

v1.3.7(3mo ago)36.4k↓25.9%MITPHPPHP ^8.1

Since Mar 8Pushed 3mo agoCompare

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

READMEChangelogDependencies (5)Versions (12)Used By (0)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

Install the `nix-logger/nix-logger-laravel` package:

```
composer require nix-logger/nix-logger-laravel
```

### Add the service provider

[](#add-the-service-provider)

Add provider `NixLogger\Laravel\NixLoggerServiceProvider::class`

#### Check Version

[](#check-version)

```
php artisan --version
# Laravel Framework xx.xx.xx
```

- For Laravel &lt; 11, update `config/app.php

```
// config/app.php
'providers' => [
    Illuminate\Auth\AuthServiceProvider::class,
    NixLogger\Laravel\NixLoggerServiceProvider::class,
]
```

- For Laravel &gt;= 11, update `bootstrap/providers.php`

```
// bootstrap/providers.php
return [
    Illuminate\Auth\AuthServiceProvider::class,
    NixLogger\Laravel\NixLoggerServiceProvider::class,
];
```

### Add the Facade

[](#add-the-facade)

- For Laravel &lt; 11, update `config/app.php`

```
// config/app.php
'aliases' => [
    'NixLogger' => NixLogger\Laravel\Facades\NixLogger::class,
]
```

- For Laravel &gt;= 11, update `bootstrap/app.php`

```
// bootstrap/app.php
->withMiddleware(function (Middleware $middleware) {
    $middleware->alias([
        'NixLogger' => NixLogger\Laravel\Facades\NixLogger::class,
    ]);
})
```

### Configuration

[](#configuration)

Configure your Nix-Logger by edit the `.env` file

```
# .env
NIX_LOGGER_API_KEY=""
NIX_LOGGER_LEVEL=critical,error,warning
LOG_CHANNEL="stack"
LOG_STACK="daily,nix-logger"
# APP_ENV=
```

If you’d like to configure Nix-Logger further, create and edit a `config/nix-logger.php` file

### Setting Log report

[](#setting-log-report)

In `config/logging.php`, add the `nix-logger` logging channel by adding the following under the `channels` key:

```
'stack' => [
    'driver' => 'stack',
    'channels' => explode(',', env('LOG_STACK', 'single')),
    'ignore_exceptions' => false,
],

'nix-logger' => [
  'driver' => 'custom',
  'via' => \NixLogger\Laravel\Logger\NixLogger::class,
],
```

For `stderr`
------------

[](#for-stderr)

```
'channels' => [
    'stderr' => [
        'driver' => 'monolog',
        'level' => env('LOG_LEVEL', 'debug'),
        'handler' => \NixLogger\Laravel\Handlers\NixLoggerStreamHandler::class,
        'formatter' => env('LOG_STDERR_FORMATTER'),
        'with' => [
            'stream' => 'php://stderr',
        ],
        'processors' => [PsrLogMessageProcessor::class],
    ],
]
```

Usage
-----

[](#usage)

### Use NixLogger Debug

[](#use-nixlogger-debug)

```
php artisan tinker
```

```
\NixLogger::error('Test Error');
```

### Text with example exception

[](#text-with-example-exception)

```
Route::get('/error', function () {
    throw new Exception('This is a test exception');

    return [
        'message' => 'This is a test response',
    ];
});
```

Open browser and navigate to

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68% 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 ~70 days

Recently: every ~122 days

Total

11

Last Release

93d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/803bebd8084774859757b5905542904e2003b3edcbb711261ef05a106cafbb51?d=identicon)[xinhnd](/maintainers/xinhnd)

---

Top Contributors

[![ducxinh](https://avatars.githubusercontent.com/u/39262203?v=4)](https://github.com/ducxinh "ducxinh (17 commits)")[![XinhND-Kozocom](https://avatars.githubusercontent.com/u/84767349?v=4)](https://github.com/XinhND-Kozocom "XinhND-Kozocom (8 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nix-logger-nix-logger-laravel/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[jackwh/laravel-new-relic

Monitor your Laravel application performance with New Relic

112827.2k](/packages/jackwh-laravel-new-relic)

PHPackages © 2026

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