PHPackages                             johndodev/jlog-bundle - 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. johndodev/jlog-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

johndodev/jlog-bundle
=====================

Easy logging.

0906—0%PHP

Since May 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/johndodev/jlog-bundle)[ Packagist](https://packagist.org/packages/johndodev/jlog-bundle)[ RSS](/packages/johndodev-jlog-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Jlog Bundle
===========

[](#jlog-bundle)

Installation
------------

[](#installation)

```
composer require johndodev/jlog-bundle
```

Configuration
-------------

[](#configuration)

### .env

[](#env)

```
JLOG_API_KEY=your_api_key
```

### config/packages/jlog.yaml

[](#configpackagesjlogyaml)

```
jlog:
    project_api_key: '%env(JLOG_API_KEY)%'
    enable_exception_listener: true
    ignore_exceptions:
        - Symfony\Component\HttpKernel\Exception\NotFoundHttpException
    # See chapter about logging commands
    console_channel: console
```

### monolog.yaml

[](#monologyaml)

You need to use the buffer handler en amont.
See for configuration options.
Ex :

```
monolog:
    channels:
        - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
        - command # same name as jlog.console_channel

    ...

    handlers:
        buffer:
            type: buffer
            handler: jlog
            level: debug # or whatever
            channels: ["app"]  # or whatever

        jlog:
            type: service
            id: jlog.monolog_handler
```

Usage
-----

[](#usage)

### Logging commands

[](#logging-commands)

Extends `Johndodev\JlogBundle\Console\LoggableOutputCommand` in your command you want to log.
The start and end of commands will be logged in Jlog, in the channel you configured, with the output as metadata.

### Logging exceptions

[](#logging-exceptions)

Unhandled exceptions are already logged (if enabled in config). You can still manually log them as usual, with monolog :

```
try {
    // ...
} catch (\Exception $e) {
    $this->logger->error('lorem ipsum...', [
        'exception' => $e->getMessage()
    ]);
}
```

### Logging messages

[](#logging-messages)

With monologer, as usual.
It is recommanded to use placeholder, especially for errors which triggers notifications, because the message is used for signature for unique notification.

```
$this->logger->error('bla bla: {error}', [
    'error' => $e->getMessage()
]);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance59

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/020e5c8afb7cb01052109e43316d1623965e27ae44c917933a09c1f8fa51307b?d=identicon)[johndodev](/maintainers/johndodev)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/johndodev-jlog-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/johndodev-jlog-bundle/health.svg)](https://phpackages.com/packages/johndodev-jlog-bundle)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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