# php-fig/log

Repository: https://github.com/php-fig/log
Canonical: https://ross.abutalabs.com/products/log
Language: PHP
License: MIT
License Family: permissive
Topics: psr-3
Last push: 2026-02-02T09:58:07+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 65, release rhythm 8, longevity 100
- inputs: {"age_days": 5024, "days_push": 212, "days_rel": 721, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10421, forks 191 (observed 2026-08-28T04:10:41.960182+00:00)

## What it is
The reference PHP package for PSR-3, providing the LoggerInterface and related classes/traits that define a standard logging contract. It is not a logger implementation itself, but the interface libraries use to accept any compatible logger.

## Use cases
- accept any psr-3 compatible logger in my php library
- standard logging interface for php packages
- type-hint a logger without coupling to a specific implementation
- implement a custom logger that works with php frameworks
- swap logging backends in a php application

## When to choose
- you are writing a PHP library or framework that should support any logger
- you want to implement a PSR-3 compliant logger
- you need to type-hint logging without a concrete dependency

## When to avoid
- you need an actual working logger implementation (use Monolog or similar)
- your project does not follow PSR standards

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: php
- tags: psr-3, logger-interface, composer, standards

## Member repositories
- php-fig/log (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.960182+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:02.705318+00:00, confidence not recorded.
  - readme: https://github.com/php-fig/log (fetched 2026-08-28T04:10:41.960182+00:00, sha 4f2bc231e87c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
