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 yesterday

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 47% 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

2974d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11683297?v=4)[Fabricio Camarano](/maintainers/fabcam)[@fabcam](https://github.com/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

[cakephp/debug_kit

CakePHP Debug Kit

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

Bake plugin for CakePHP

11212.0M192](/packages/cakephp-bake)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1902.3M40](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M49](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308914.0k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-tinyauth

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

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

PHPackages © 2026

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