PHPackages                             sensorario/develog - 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. sensorario/develog

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

sensorario/develog
==================

just another php log library

v2.0.2(3y ago)27.6k11MITPHP

Since Mar 15Pushed 3y agoCompare

[ Source](https://github.com/sensorario/develog)[ Packagist](https://packagist.org/packages/sensorario/develog)[ RSS](/packages/sensorario-develog/feed)WikiDiscussions master Synced today

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

Develog
=======

[](#develog)

These are a family of Logger I use in development. Sometimes to log in a particular file. Sometimes to format json responses. Is an indipendent library and do not need vendor except for Psr\\Log\\LoggerInterface.

Usages
------

[](#usages)

- [log into file](#log-into-file)
- [handle http request](#handle-http-request)
- [handle Symfony request](#handle-symfony-request)
- [create symfony service](#create-symfony-service)
- [configure log size](#configure-log-size)

Tree
----

[](#tree)

Here the tree starting from version 1.3.0

```
src/
└── Sensorario
    └── Develog
        ├── Logger
        │   ├── AbstractLogger.php
        │   ├── HttpLogger.php
        │   ├── LoggerInterface.php
        │   ├── NoDateLogger.php
        │   ├── NormaLogger.php
        │   ├── RawLogger.php
        │   └── SymfonyLogger.php
        ├── Logger.php
        ├── PsrLogger.php
        ├── Request
        │   ├── HttpRequestObject.php
        │   └── RequestInterface.php
        ├── Request.php
        ├── Response.php
        └── SymfonyLoggerInterface.php

```

### Just log without date and level

[](#just-log-without-date-and-level)

```
use Sensorario\Develog\Logger\RawLogger;

$logger = new RawLogger();
$logger->setLogFile('/path/to/file');
$logger->write('log this content …');

```

### Configure log size

[](#configure-log-size)

```
use Sensorario\Develog\Logger\RawLogger;

$logger = new RawLogger();
$logger->setLogFile('/path/to/file');
$logger->setSizeLimitInBytes(2000000);

```

### Log without date

[](#log-without-date)

```
use Sensorario\Develog\Logger\NoDateLogger;

$logger = new NoDateLogger();
$logger->setLogFile('/path/to/file');
$logger->write('log this content …');

```

### Log into file

[](#log-into-file)

```
use Sensorario\Develog\Logger\NormaLogger;

$logger = new NormaLogger();
$logger->setLogFile('/path/to/file');
$logger->write('log this content …');
$logger->logClass($object);

$obj = new \Bar\Foo();
$logger->logClassWithMessage($obj, 'log this'); // log this \Bar\Foo()

```

### Handle Http Request

[](#handle-http-request)

```
use Sensorario\Develog\Logger\HttpLogger;
use Sensorario\Develog\Request\HttpRequestObject;

$logger = new HttpLogger();
$logger->setLogFile($this->getParameter('kernel.root_dir').'/../var/logs/foo.log');
$logger->logRequest(HttpRequestObject::handleRequest());

```

### Handle Symfony Request

[](#handle-symfony-request)

```
use Sensorario\Develog\Logger\SymfonyLogger;
use Sensorario\Develog\Request\HttpRequestObject;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

public function indexAction(Request $request)
{
    $logger = new SymfonyLogger();
    $logger->setLogFile($this->getParameter('kernel.root_dir').'/../var/logs/foo.log');
    $logger->logSymfonyRequest($request);

    $response = new Response('foo');
    $logger->logSymfonyRequest($response);
}

```

### Create Symfony service

[](#create-symfony-service)

This is not mandatory, but if you want you can also configure these services inside your services.yml file when using a Symfony application. Because of I always use develo just for development purpose I have never added it as service: I still prefer copy and paste the needed code from this file. Maybe in the future I'll create a Bundle that provide some services by itself.

```
services:

  logger.normal:
    class: Sensorario\Develog\Logger\NormaLogger

  logger.symfony
    class: Sensorario\Develog\Logger\SymfonyLogger

  logger.http
    class: Sensorario\Develog\Logger\HttpLogger

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

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

Recently: every ~374 days

Total

41

Last Release

1368d ago

Major Versions

v1.4.4 → v2.0.02022-09-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/6deb026c846017d92a6feb598acbbf7ad4ac8852bdd39448647dee004402182f?d=identicon)[sensorario](/maintainers/sensorario)

---

Top Contributors

[![sensorario](https://avatars.githubusercontent.com/u/820248?v=4)](https://github.com/sensorario "sensorario (108 commits)")[![AlessandroMinoccheri](https://avatars.githubusercontent.com/u/3356506?v=4)](https://github.com/AlessandroMinoccheri "AlessandroMinoccheri (1 commits)")

---

Tags

logphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sensorario-develog/health.svg)

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

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