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

ActiveSymfony-bundle

trinity/logger
==============

Trinity Logger bundle

v1.1.19(8y ago)04.1kMITPHPPHP &gt;=7.1

Since Dec 16Pushed 8y ago14 watchersCompare

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

READMEChangelog (10)Dependencies (16)Versions (23)Used By (0)

trinity-logger
==============

[](#trinity-logger)

This bundle is reconstructed for new elasticsearch (v5) and the read me is not actualized yet. TODO
===================================================================================================

[](#this-bundle-is-reconstructed-for-new-elasticsearch-v5-and-the-read-me-is-not-actualized-yet-todo)

[![Coverage Status](https://camo.githubusercontent.com/98983f83b7324efd00fe2fc6deeaa49485caec1af0ca92fce1045e7593648f77/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6f647072656e6575722f7472696e6974792d6c6f676765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/modpreneur/trinity-logger?branch=master)[![Build Status](https://camo.githubusercontent.com/c99b69863fafd1f5db6af5416fec12676f7e5454cdc6931bd4feace271d71d60/68747470733a2f2f7472617669732d63692e6f72672f6d6f647072656e6575722f7472696e6974792d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/modpreneur/trinity-settings)

Bundle for storing and loading logs in ElasticSearch database.

Write issue if you found something that doesn't work as it should.

Logger creates new index each day in format YYYY-MM-DD. It works with environment and as for now two types are used. Development and Production logs are written into same index. The test environment adds prefix 'test-' before the index.

Thanks to this the logs may be viewed directly by using URL:

```
http:\\elastic_host:port\YYYY-MM-DD\LogName\LogId

```

for example:

```
trinity_logger:
  elastic_logs:
    elastic_host: '127.0.0.1:9200'
    managed_index: 'necktie'

```

Configured index can be changed when method is called.

Classic call:

```
$this->get('trinity.elastic.read.log.service')->getCount('ExceptionLog');

```

Call different index:

```
$this->get('trinity.elastic.read.log.service')->setIndex('venice')->getCount('ExceptionLog');

```

For searching it is required to know where is entity class stored. Most classes are stored on same place and therefor they can be added into configuration as follow:

```
trinity_logger:
  elastic_logs:
    elastic_host: '127.0.0.1:9200'
    managed_index: 'necktie'
    entities_path: 'Necktie\\AppBundle\\Entity'

```

When we use nqlQuery (see trinity/search for more about used nqlQuery) we can call:

```
$entities = $this->get('trinity.elastic.read.log.service')->getByQuery($nqlQuery);

```

If entity definition is stored elsewhere, we go for example as this:

```
$entities = $this->get('trinity.elastic.read.log.service')
    ->setEntityPath('Necktie\\PaymentBundle\\Entity')
    ->getByQuery($nqlQuery);

```

Note: ElasticSearch is noSQL database.... NO!!!SQL therefor it will go with only queries under one entity. If you need join something use relation based SQL database.

As main use of this bundle for now is Necktie, following values are used as default and doesn't require configuration. managed\_index: 'necktie' entities\_path: 'Necktie\\AppBundle\\Entity'

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 52.7% 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 ~7 days

Recently: every ~22 days

Total

21

Last Release

3075d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44273a4ac0f029f29c2e5f37a72fbf0a0059927d2674a7417d8f14066e3c75e6?d=identicon)[modpreneur](/maintainers/modpreneur)

---

Top Contributors

[![Bordovsky](https://avatars.githubusercontent.com/u/14068785?v=4)](https://github.com/Bordovsky "Bordovsky (119 commits)")[![prodejledu](https://avatars.githubusercontent.com/u/5036996?v=4)](https://github.com/prodejledu "prodejledu (40 commits)")[![Jakub-Fajkus](https://avatars.githubusercontent.com/u/13538235?v=4)](https://github.com/Jakub-Fajkus "Jakub-Fajkus (29 commits)")[![jjanekk](https://avatars.githubusercontent.com/u/2411050?v=4)](https://github.com/jjanekk "jjanekk (16 commits)")[![GeretCZE](https://avatars.githubusercontent.com/u/19844372?v=4)](https://github.com/GeretCZE "GeretCZE (7 commits)")[![Franec](https://avatars.githubusercontent.com/u/13620975?v=4)](https://github.com/Franec "Franec (7 commits)")[![martinmikan](https://avatars.githubusercontent.com/u/8027555?v=4)](https://github.com/martinmikan "martinmikan (3 commits)")[![Nialaren](https://avatars.githubusercontent.com/u/4409189?v=4)](https://github.com/Nialaren "Nialaren (3 commits)")[![glogloglik](https://avatars.githubusercontent.com/u/18656675?v=4)](https://github.com/glogloglik "glogloglik (1 commits)")[![Rockuo](https://avatars.githubusercontent.com/u/10503337?v=4)](https://github.com/Rockuo "Rockuo (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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