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(4mo ago)27.3k↑25.2%MITPHPPHP ^8.1

Since Mar 8Pushed 4mo 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 3d 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

45

—

FairBetter than 91% of packages

Maintenance74

Regular maintenance activity

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

146d 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

[illuminate/log

The Illuminate Log package.

6225.3M625](/packages/illuminate-log)[mateusjunges/laravel-kafka

A kafka driver for laravel

7253.6M21](/packages/mateusjunges-laravel-kafka)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)

PHPackages © 2026

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