cognesy/logging
Larablocks Analysis
cognesy/logging works with any PHP project: the latest release (v2.14.2, Oct 8, 2026) doesn't depend on Laravel.
Recommendation checks
PromisingPromising: 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 |
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(defaultCognesy\Events\Contracts\CanHandleEvents). - The legacy Symfony bundle path is deprecated in favor of
cognesy/instructor-symfonyandinstructor.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.mdpackages/logging/src/packages/logging/tests/
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
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 | |
| v2.11.0 | ^8.3 | MIT | |
| v2.10.1 | ^8.3 | MIT | |
| v2.10.0 | ^8.3 | MIT | |
| v2.9.5 | ^8.3 | MIT | |
| v2.9.4 | ^8.3 | MIT | |
| v2.9.3 | ^8.3 | MIT | |
| v2.9.2 | ^8.3 | MIT | |
| v2.9.1 | ^8.3 | MIT | |
| v2.9.0 | ^8.3 | MIT | |
| v2.8.5 | ^8.3 | MIT | |
| v2.8.4 | ^8.3 | MIT | |
| v2.8.3 | ^8.3 | MIT | |
| v2.8.2 | ^8.3 | MIT | |
| v2.8.1 | ^8.3 | MIT | |
| v2.8.0 | ^8.3 | MIT | |
| v2.7.1 | ^8.3 | MIT | |
| v2.7.0 | ^8.3 | MIT | |
| v2.6.2 | ^8.3 | MIT | |
| v2.6.1 | ^8.3 | MIT | |
| v2.6.0 | ^8.3 | MIT | |
| v2.5.2 | ^8.3 | MIT | |
| v2.5.1 | ^8.3 | MIT | |
| v2.5.0 | ^8.3 | MIT | |
| v2.4.1 | ^8.3 | MIT | |
| v2.3.1 | ^8.3 | MIT |
Showing the latest 30 of 48. See every release on Packagist