PHPackages                             inktrapdesign/model-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. inktrapdesign/model-logger

ActiveLibrary

inktrapdesign/model-logger
==========================

Logs model updates in better stack

0.0.8(2y ago)0169↓100%MITPHP

Since Aug 21Pushed 2y ago2 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Inktrap's Model Logger
======================

[](#inktraps-model-logger)

This package provides a simple way to log model changes in your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require inktrapdesign/model-logger
```

Setup
-----

[](#setup)

You need to the BetterStack Source to your environment file. This is the source that will be used to identify the log entries in BetterStack.

```
LOGGER_CHANNEL=default
LOGGER_SOURCE=1234567890
```

Usage
-----

[](#usage)

To enable logging for a model, add the `ModelLogger` trait to the model

```
use InktrapDesign\ModelLogger\ModelLogger;

class User extends Model
{
    use ModelLogger;
}
```

General Logging
---------------

[](#general-logging)

To enable general logging to BetterStack, you first need to create a new channel in the `config/logging.php` file.

```
'betterstack' =>
  [
    'driver' => 'monolog',
    'level' => env('LOG_LEVEL', 'debug'),
    'handler' => \Logtail\Monolog\LogtailHandler::class,
    'with' => [
        'sourceToken' => env('LOGGER_SOURCE')
    ],
    'processors' => [PsrLogMessageProcessor::class],
  ],
```

You then want to add this channel to the stack, also in the `config/logging.php` file.

```
'stack' =>
  [
    'driver' => 'stack',
    'channels' => ['single', 'betterstack'],
    'ignore_exceptions' => false,
  ],
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

991d ago

### Community

Maintainers

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

---

Top Contributors

[![Crevans02](https://avatars.githubusercontent.com/u/20242123?v=4)](https://github.com/Crevans02 "Crevans02 (19 commits)")

### Embed Badge

![Health badge](/badges/inktrapdesign-model-logger/health.svg)

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

PHPackages © 2026

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