# Seldaek/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

Repository: https://github.com/Seldaek/monolog
Canonical: https://ross.abutalabs.com/products/monolog
Homepage: https://seldaek.github.io/monolog/
Language: PHP
License: MIT
License Family: permissive
Topics: php, logging, logger, psr-3, hacktoberfest
Last push: 2026-08-24T08:18:08+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 64, longevity 100
- inputs: {"age_days": 5677, "days_push": 9, "days_rel": 243, "gap_med": 23, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 21401, forks 1908 (observed 2026-08-28T04:11:31.680358+00:00)

## What it is
Monolog is the de facto standard logging library for PHP, implementing the PSR-3 logger interface. It sends logs to files, sockets, databases, and web services via a flexible system of handlers, formatters, and processors.

## Use cases
- log application errors to files in PHP
- send PHP logs to Slack or email
- implement PSR-3 compatible logging in a library
- route logs to multiple destinations with different severity levels
- structure and format log records for log aggregation services

## When to choose
- you need logging in any PHP application or framework
- you want PSR-3 interoperability so you can swap loggers later
- you need to fan out logs to many backends like files, sockets, and web services

## When to avoid
- you are not working in PHP
- you need a full log aggregation and visualization platform rather than a logging library

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend, monitoring
- platform: php
- tags: psr-3, log-handlers, composer

## Member repositories
- Seldaek/monolog (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:31.680358+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-29T16:58:07.001028+00:00, confidence not recorded.
  - readme: https://github.com/Seldaek/monolog (fetched 2026-08-28T04:11:31.680358+00:00, sha 7c727ce90a81)
  - homepage: https://seldaek.github.io/monolog/ (fetched 2026-08-29T07:56:40.724066+00:00, sha a95bdcc6d7de)
- Data as of 2026-08-30T08:39:29.467469+00:00.
