PHPackages                             fabcam/console-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. fabcam/console-logger

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

fabcam/console-logger
=====================

Console Logger plugin for CakePHP

v1.1(8y ago)019MITPHP

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fabcam/console-logger)[ Packagist](https://packagist.org/packages/fabcam/console-logger)[ RSS](/packages/fabcam-console-logger/feed)WikiDiscussions master Synced 2mo ago

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

\#Console Logger plugin for CakePHP

Logs whatever you want to console.

Usage:

Import Logger

```
use ConsoleLogger\Log\Logger;

```

And then:

```
Logger::log('message', 'info');

```

log function can receive as a message an array, object or string. Second parameter is level, used mostly for styling.

There are some pre defined levels:

```
$output->styles('annoy', ['text' => 'yellow', 'blink' => true]);
$output->styles('http_response', ['text' => 'yellow']);
$output->styles('http_request', ['text' => 'cyan']);

```

And some defined in Cake's class ConsoleOutput:

```
protected static $_styles = [
    'emergency' => ['text' => 'red'],
    'alert' => ['text' => 'red'],
    'critical' => ['text' => 'red'],
    'error' => ['text' => 'red'],
    'warning' => ['text' => 'yellow'],
    'info' => ['text' => 'cyan'],
    'debug' => ['text' => 'yellow'],
    'success' => ['text' => 'green'],
    'comment' => ['text' => 'blue'],
    'question' => ['text' => 'magenta'],
    'notice' => ['text' => 'cyan']
];

```

There is one base controller that could be used to log every action. In your AppController:

```
...

use ConsoleLogger\Controller\BaseController;

class AppController extends BaseController
{
  ...

```

There is also a wrapper for Http Client class that logs every http method requests and responses Instead of using Cake's Http Client do:

```
use ConsoleLogger\Http\Client;

```

A behavior is also included in oder to log every query that is executed in the BeforeFind callback. In order to use it just add the following line to the desired Table:

```
$this->addBehavior('ConsoleLogger.Log')

```

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

[](#installation)

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

The recommended way to install composer packages is:

```
composer require fabcam/console-logger

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~8 days

Total

3

Last Release

2927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2903e751b0a4fc80ea8861aef653b630ea69faf680e89c92f76687a4d942dc2f?d=identicon)[fabcam](/maintainers/fabcam)

---

Top Contributors

[![fabcam](https://avatars.githubusercontent.com/u/11683297?v=4)](https://github.com/fabcam "fabcam (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fabcam-console-logger/health.svg)

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

###  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)
