PHPackages                             cognesy/logging - 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. cognesy/logging

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

cognesy/logging
===============

Functional logging pipeline for Instructor PHP with framework integrations

v2.3.1(1mo ago)001MITPHPPHP ^8.3

Since Dec 7Pushed 1mo agoCompare

[ Source](https://github.com/cognesy/instructor-logging)[ Packagist](https://packagist.org/packages/cognesy/logging)[ Docs](https://instructorphp.com)[ RSS](/packages/cognesy-logging/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (31)Versions (20)Used By (1)

Logging Package
===============

[](#logging-package)

Functional logging pipeline for InstructorPHP events.

Use it to turn events into structured log entries using composable:

- filters
- enrichers
- formatters
- writers

Symfony integration is included.

Framework integration wiring is explicit in 2.0:

- Laravel integration lives in `packages/laravel`.
- Symfony legacy bundle wiring uses `instructor_logging.event_bus_service` (default `Cognesy\Events\Contracts\CanHandleEvents`).
- The legacy Symfony bundle path is deprecated in favor of `cognesy/instructor-symfony` and `instructor.logging`.

Example
-------

[](#example)

```
