PHPackages                             tyrellsys/cakephp-log - 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. tyrellsys/cakephp-log

ActiveCakephp-plugin[Logging &amp; Monitoring](/categories/logging)

tyrellsys/cakephp-log
=====================

CakePHPLog plugin for CakePHP

0.0.1(6y ago)179MITPHPCI failing

Since Mar 16Pushed 6y ago5 watchersCompare

[ Source](https://github.com/tyrellsys/cakephp-log)[ Packagist](https://packagist.org/packages/tyrellsys/cakephp-log)[ RSS](/packages/tyrellsys-cakephp-log/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

CakePHPLog plugin for CakePHP
=============================

[](#cakephplog-plugin-for-cakephp)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require tyrellsys/cakephp-log

```

Usage
-----

[](#usage)

### Formatter::getMessage($message)

[](#formattergetmessagemessage)

convert `$message` to string.

```
[hostname]:/path/to/filename(line no)[pid]: extracted $message

```

```
...
use Tyrellsys\CakePHPLog\Formatter;
...
    $message = string / array / Cake\Datasource\EntityInterface / Object

    Log::write(LOG_WARNING, Formatter::getMessage($message));
    Log::info(Formatter::getMessage($message));
    $this->log(Formatter::getMessage($message), LOG_WARNING);

```

Override CakePHP4 Cake\\Log\\Log and Cake\\Log\\LogTrait
--------------------------------------------------------

[](#override-cakephp4-cakeloglog-and-cakeloglogtrait)

> Logging related methods like Cake\\Log\\LogTrait::log(), Cake\\Log\\Log::write() etc. now only accept string for $message argument. This change was necessary to align the API with PSR-3 standard.

*You understand and use the feature to ignore the change.*

Tyrellsys\\CakePHP\\Log

```
...
use Tyrellsys\CakePHPLog\Log;
...
        Log::write(LOG_WARNING, $mixed); // mixed message with Tyrellsys/CakePHPLog/Formatter::getMessage()
...

```

Tyrellsys\\CakePHPLog\\LogTrait

```
...
use Tyrellsys\CakePHPLog\LogTrait;
...
class XXX
{
    use Tyrellsys\CakePHPLog/LogTrait;
...
        $this->log($mixed, LOG_WARNING); // mixed message with Tyrellsys/CakePHPLog/Formatter::getMessage()
...
}
...

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94c61c4432733be8a29ec479b4f1db54e6efb90751833ebfc645cb94f283cda6?d=identicon)[mtak3](/maintainers/mtak3)

---

Top Contributors

[![mtak3](https://avatars.githubusercontent.com/u/1726154?v=4)](https://github.com/mtak3 "mtak3 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tyrellsys-cakephp-log/health.svg)

```
[![Health](https://phpackages.com/badges/tyrellsys-cakephp-log/health.svg)](https://phpackages.com/packages/tyrellsys-cakephp-log)
```

###  Alternatives

[lordsimal/cakephp-sentry

Sentry plugin for CakePHP

12270.3k](/packages/lordsimal-cakephp-sentry)

PHPackages © 2026

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