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 3w 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 26% 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

2299d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1726154?v=4)[TS\_瀧澤 充浩（Takizawa Mitsuhiro）](/maintainers/mtak3)[@mtak3](https://github.com/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

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M170](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M201](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M43](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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