PHPackages                             ttree/chromelogger - 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. ttree/chromelogger

ActiveTypo3-flow-package[Logging &amp; Monitoring](/categories/logging)

ttree/chromelogger
==================

A TYPO3 Flow Logger Backend to send log the the Chrome Console

0.9(11y ago)212[1 issues](https://github.com/ttreeagency/ChromeLogger/issues)PHP

Since Jan 20Pushed 11y ago3 watchersCompare

[ Source](https://github.com/ttreeagency/ChromeLogger)[ Packagist](https://packagist.org/packages/ttree/chromelogger)[ RSS](/packages/ttree-chromelogger/feed)WikiDiscussions master Synced 1mo ago

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

A TYPO3 Flow Logger Backend to send log the the Chrome Console
==============================================================

[](#a-typo3-flow-logger-backend-to-send-log-the-the-chrome-console)

The Logger Backend can display your application in the Chrome Console, with the extension "[Chrome Logger](http://craig.is/writing/chrome-logger)".

[![Sample image based on the TYPO3 Neos Demo Site](https://camo.githubusercontent.com/80251a9606df760fdb5199c35e2a1fe65c1f078bf9fc6d27db220fba2c85a032/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f732f73343132313364666a6e73637375352f323031352d30312d3230253230617425323031392e333325323032782e706e673f646c3d30)](https://camo.githubusercontent.com/80251a9606df760fdb5199c35e2a1fe65c1f078bf9fc6d27db220fba2c85a032/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f732f73343132313364666a6e73637375352f323031352d30312d3230253230617425323031392e333325323032782e706e673f646c3d30)

How to use it ?
---------------

[](#how-to-use-it-)

You need to configure the Logger Backend in `Settings.yaml`::

```
TYPO3:
  Flow:
    log:
      systemLogger:
        backend:
          0: 'TYPO3\Flow\Log\Backend\FileBackend'
          1: 'Ttree\ChromeLogger\Log\Backend\ChromeConsoleBackend'
        backendOptions:
          0:
            logFileURL: '%FLOW_PATH_DATA%Logs/System_Development.log'
            createParentDirectories: TRUE
            severityThreshold: '%LOG_INFO%'
            maximumLogFileSize: 10485760
            logFilesToKeep: 1
            logMessageOrigin: FALSE
          1:
            severityThreshold: '%LOG_CRIT%'
```

By default the package use a grouped output to show log on mulitple lines:

[![Default Output](https://camo.githubusercontent.com/267c0994829c25fd8cc3fe406235c7c3d91d31ff1b6b42b4f9f92a5f218183eb/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f732f687a63743838363463683934336b322f323031352d30312d3230253230617425323032332e303525323032782e706e673f646c3d30)](https://camo.githubusercontent.com/267c0994829c25fd8cc3fe406235c7c3d91d31ff1b6b42b4f9f92a5f218183eb/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f732f687a63743838363463683934336b322f323031352d30312d3230253230617425323032332e303525323032782e706e673f646c3d30)

Use it in your own package
--------------------------

[](#use-it-in-your-own-package)

You can use the default system logger provided by Flow, but you can also inject the `ChomeLoggerServive` in your own class.

Check the following code for some example:

```
$this->chromeLoggerInstance->log('Foo');
$this->chromeLoggerInstance->info('Foo');
$this->chromeLoggerInstance->warn('Foo');
$this->chromeLoggerInstance->error('Foo');

// You can group your log entry, groupCollapsed method for a more compact rendering
$this->chromeLoggerInstance->group('String');
$this->chromeLoggerInstance->log('Foo');
$this->chromeLoggerInstance->log(array('Foo'));
$this->chromeLoggerInstance->groupEnd();

$this->chromeLoggerInstance->group('Table');
$this->chromeLoggerInstance->table('Foo');
$this->chromeLoggerInstance->table(array('Foo'));
$this->chromeLoggerInstance->groupEnd();

$this->chromeLoggerInstance->group('Object');
$this->chromeLoggerInstance->log($this->request->getHttpRequest());
$this->chromeLoggerInstance->log(new \DateTime());
$this->chromeLoggerInstance->groupEnd();
```

**Warning**: HTTP Header are limited to 256kb, currently if you hit the limit, you wont see any logs in the console.

[![Sample image with more advanced log values](https://camo.githubusercontent.com/1c918f3df3ccca24741fa0b746527023ceedf48181f360b08c95f241ee5c894d/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f732f736c73636e7676307771727279716c2f323031352d30312d3230253230617425323032312e333625323032782e706e673f646c3d30)](https://camo.githubusercontent.com/1c918f3df3ccca24741fa0b746527023ceedf48181f360b08c95f241ee5c894d/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f732f736c73636e7676307771727279716c2f323031352d30312d3230253230617425323032312e333625323032782e706e673f646c3d30)

TODO
----

[](#todo)

Feel free to open issue if you need a specific feature and better send a pull request. Here are some idea for future improvements:

- Support for exception and backtrace
- Add support for Header compression (gzip) to mitigate the 256kb limit (need change in the Chrome extension too)
- Better reflexion, maybe

Acknowledgments
---------------

[](#acknowledgments)

Development sponsored by [ttree ltd - neos solution provider](http://ttree.ch).

License
-------

[](#license)

Licensed under GPLv3+, see [LICENSE](LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

4135d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/145363?v=4)[ttree](/maintainers/ttree)[@ttree](https://github.com/ttree)

---

Top Contributors

[![dfeyer](https://avatars.githubusercontent.com/u/221173?v=4)](https://github.com/dfeyer "dfeyer (12 commits)")

### Embed Badge

![Health badge](/badges/ttree-chromelogger/health.svg)

```
[![Health](https://phpackages.com/badges/ttree-chromelogger/health.svg)](https://phpackages.com/packages/ttree-chromelogger)
```

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