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

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

griiv/logger
============

Permet d'écrire des logs customs dans /var/logs

1.0.2(2y ago)0338MITPHPPHP &gt;=7.2

Since Mar 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/griiv-git/logger)[ Packagist](https://packagist.org/packages/griiv/logger)[ RSS](/packages/griiv-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

InfraLogger
===========

[](#infralogger)

Ce module est plutôt un outil qu'un module, qui permet de logger des entrées dans des fichiers situés dans var/logs du projet Prestashop Le logger respecte la PSR Log

### Configuration

[](#configuration)

Vous pouvez configurer le chemin et le nom des fichiers de logs``` par défaut les fichiers sont les suivants :

- `_PS_ROOT_DIR_. '/var/logs/' . 'application.log';`
- `_PS_ROOT_DIR_.'/var/logs/' . 'exception.log';`
- `_PS_ROOT_DIR_.'/var/logs/' . 'phperror.log';`

### Utilisation du Logger

[](#utilisation-du-logger)

Il y a 8 niveau de log :

```
const EMERGENCY = 'emergency';
const ALERT     = 'alert';
const CRITICAL  = 'critical';
const ERROR     = 'error';
const WARNING   = 'warning';
const NOTICE    = 'notice';
const INFO      = 'info';
const DEBUG     = 'debug';

```

Il y a une methode pour logger chaque niveau.

A savoir que le niveau 'error' sera logger dans le fichier `var/logs/phperror.log`.

La classe à utiliser pour écrire un log est `Griiv\Logger`.

```
Logger::debug("test debug log");
Logger::alert("test alert log");
Logger::emergency("test emergency log");
Logger::notice("test notice log");
Logger::critical("test critical log");
Logger::error("test error log");
Logger::warning("test warning log");
Logger::info("test info log");

```

Il est aussi possible de logger les exception dans un fichier séparer (`var/logs/exception.log).

```
Logger::exception(new Exception());

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

850d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M330](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M621](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k49](/packages/ecotone-ecotone)

PHPackages © 2026

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