New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

cognesy/logging

Functional logging pipeline for Instructor PHP with framework integrations
1,007

Larablocks Analysis

cognesy/logging works with any PHP project: the latest release (v2.14.2, Oct 8, 2026) doesn't depend on Laravel.

Promising: maintained and up to date, meets 1 of 3 checks; not yet widely used.

  • Released in the last 12 months (Oct 8, 2026)
  • 98 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Oct 8, 2026.
  • 48 releases in the last 12 months.
  • First released: Dec 7, 2025.
  • Monthly downloads: 98.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require cognesy/logging
Latest Version:v2.14.2
PHP:^8.3
License:MIT
Last Updated:Nov 2, 2026
Links: GitHub  ·  Packagist
Maintainer: ddebowczyk

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

<?php

use Cognesy\Events\Event;
use Cognesy\Logging\Enrichers\BaseEnricher;
use Cognesy\Logging\Filters\LogLevelFilter;
use Cognesy\Logging\Formatters\DefaultFormatter;
use Cognesy\Logging\LogEntry;
use Cognesy\Logging\Pipeline\LoggingPipeline;
use Cognesy\Logging\Writers\CallableWriter;
use Psr\Log\LogLevel;

$pipeline = LoggingPipeline::create()
    ->filter(new LogLevelFilter(LogLevel::INFO))
    ->enrich(new BaseEnricher())
    ->format(new DefaultFormatter())
    ->write(CallableWriter::create(function (LogEntry $entry): void {
        error_log($entry->message);
    }))
    ->build();

$pipeline(new Event(['operation' => 'demo']));

Documentation

  • packages/logging/CHEATSHEET.md
  • packages/logging/src/
  • packages/logging/tests/

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP License
v2.14.2 ^8.3 MIT
v2.14.1 ^8.3 MIT
v2.14.0 ^8.3 MIT
v2.13.0 ^8.3 MIT
v2.12.0 ^8.3 MIT