graham-campbell/logger-core
Core logging utilities for Laravel applications, providing a PSR-3-compatible logger foundation, context handling, and reusable components for Graham Campbell's logger packages. Lightweight and easy to integrate into existing Laravel projects.
LoggerInterface property, a lazy getLogger(), and a setLogger() setter. That is an afternoon of internal code. Adopting a dependency for it buys us supply-chain tracking, version-constraint management, and upgrade risk in exchange for roughly thirty lines we could own outright.Psr\Log\LoggerInterface, not the Log facade," so domain services, jobs, and SDK-style clients stay framework-agnostic and testable with a NullLogger or TestLogger. That is a coding-standard decision we can make and document without the package.LoggerInterface in our own conventions — cheaper and better than a package that stores the logger on the instance.GrahamDeprecated org, has zero stars and zero dependents, and its headline quality evidence is "added a couple of tests." Treat it as an archived artifact, not a candidate. The v1.1.0 "official Lumen support" line is a historical footnote, not an adoption argument — do not let a changelog entry reverse a deprecation signal.psr/log major-version mismatch is the second. Both are avoidable only if we control the code.Log::, logger(), or constructor injection already solves that with channels, handlers, and context configured — reaching for the trait there is a net loss.GrahamDeprecated org, has zero dependents, and its test suite is described as "a couple of tests." It also carries two known sharp edges: the logger is stored on the instance and will break serialisation of queued jobs, and its psr/log constraint may not match our Laravel major. If the pattern is useful, copy the idea — not the dependency.LoggerInterface over trait-based logging.How can I help you explore Laravel packages today?