PHPackages                             medicivn/eloquent-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. medicivn/eloquent-logger

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

medicivn/eloquent-logger
========================

v1.0.0(3y ago)03.8k[1 issues](https://github.com/MediciVN/eloquent-logger/issues)MITPHPPHP ^8.1

Since Oct 17Pushed 3y ago2 watchersCompare

[ Source](https://github.com/MediciVN/eloquent-logger)[ Packagist](https://packagist.org/packages/medicivn/eloquent-logger)[ RSS](/packages/medicivn-eloquent-logger/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

EloquentLogger
==============

[](#eloquentlogger)

Automatically update the logger when updating a model.

How to use:

- First, a root node must be initialized in your model's table
- Add `use ActivityLogTrait;` to your eloquent model, example:

```
use Medicivn\EloquentLogger\ActivityLogTrait;

class UserTest extends Model
{
    use HasFactory, ActivityLogTrait;

    /**
    * The column need note write the change
    *
    * Default: []
    */
    const LOGGABLE = [
        'name',
    ];

    /**
    * The model name to record changes
    *
    * Default: null
    */
    const MODEL_NAME_LOG = ActivityUserTestLog::class;

```

Function
--------

[](#function)

- `writeLog`: write logger when changing data

Notes
-----

[](#notes)

- If you are using ActivityLogTrait for MySQL then create a table with the following columns
    - `model_id`
    - `url`
    - `time`
    - `creator`
    - `creator_id`
    - `action`
    - `key`
    - `old_value`
    - `new_value`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

2

Last Release

1303d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82cf8224a32b96dbba4b0454806058ad5a4a418580f9ada2949b0454ad8ffbd2?d=identicon)[medicivn](/maintainers/medicivn)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/medicivn-eloquent-logger/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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