# php-fig/log

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/php-fig-log).**

10,440 stars · 189 forks · PHP · MIT

## Links

- GitHub: https://github.com/php-fig/log
- awesome-repositories: https://awesome-repositories.com/repository/php-fig-log.md

## Topics

`psr-3`

## Description

This project is a standardized specification for logging APIs in PHP. It defines a common logging interface and a set of severity levels to ensure ecosystem-wide compatibility between different logging implementations.

The project focuses on PHP library interoperability by providing a vendor-neutral interface. This allows various software packages to record application events consistently without being tied to a specific logging vendor, adhering to the PSR-3 implementation standard.

The specification covers architectural primitives for logging abstractions, including implementation-agnostic designs and standardized method signatures. It enables context-aware message passing and fixed-level severity mapping to maintain consistent importance ranking across different libraries.

## Tags

### Programming Languages & Runtimes

- [PHP Standard Interface Implementations](https://awesome-repositories.com/f/programming-languages-runtimes/php-standard-interface-implementations.md) — Implements the PSR-3 standard interface to ensure logging compatibility across the PHP ecosystem.

### Software Engineering & Architecture

- [Interface-Based Abstractions](https://awesome-repositories.com/f/software-engineering-architecture/graph-algorithms/interface-based-abstractions.md) — Implements interface-based abstractions to decouple logging calls from specific storage or transport implementations.
- [Implementation-Agnostic APIs](https://awesome-repositories.com/f/software-engineering-architecture/implementation-agnostic-apis.md) — Separates the logging API definition from the actual logic used to write logs to various targets.
- [Interoperability Specifications](https://awesome-repositories.com/f/software-engineering-architecture/interoperability-specifications.md) — Provides an interoperability specification that allows various PHP packages to share a single logging implementation.
- [Logging APIs](https://awesome-repositories.com/f/software-engineering-architecture/logging-apis.md) — Provides a standardized API for recording application events through consistent method signatures and severity levels.
- [API Signature Standards](https://awesome-repositories.com/f/software-engineering-architecture/api-signature-standards.md) — Enforces specific argument types and return values for logging methods to guarantee interchangeable library compatibility.
- [Structured Logging](https://awesome-repositories.com/f/software-engineering-architecture/structured-logging.md) — Provides a mechanism for passing associative arrays as context alongside log messages for structured logging.

### System Administration & Monitoring

- [Application Logging](https://awesome-repositories.com/f/system-administration-monitoring/diagnostic-tools/diagnostics/telemetry-and-log-collectors/application-logging.md) — Defines a common set of logging levels and interfaces for consistent application-level event recording.
- [Log Level Mappings](https://awesome-repositories.com/f/system-administration-monitoring/log-ingestion/log-field-mappings/trace-to-log-mappers/log-level-mappings.md) — Defines standardized log level mappings to ensure consistent importance ranking across different PHP logging libraries.

### Web Development

- [Logging Interfaces](https://awesome-repositories.com/f/web-development/web-standards/standards-compliant-implementations/php-interface-standards/logging-interfaces.md) — Establishes a common set of logging interfaces and levels to ensure interoperability between PHP implementations.
