qmetrics.net

monolog

PSR-3 logging library for PHP applications

monolog screenshot

Monolog is a PHP package that routes application logs to many destinations. It implements PSR-3 so other compatible loggers can be swapped in later.

Overview

Monolog is a logging library for PHP that forwards log records to files, sockets, inboxes, databases, and various web services. Handlers, formatters, and processors can be combined to shape how records are captured and delivered.

The public API implements the PSR-3 logger interface, so libraries can type-hint against that standard and applications can replace the backend without rewriting call sites. Monolog also accepts PSR-3 log levels in its APIs while still using its own internal level scheme for compatibility with older releases.

Documentation covers handlers, formatters, processors, utility classes, extension points, and the structure of a log record. Additional handlers and formatters from the community are cataloged separately.

Many PHP frameworks and stacks integrate Monolog directly or through plugins, including Symfony, Laravel, Lumen, Drupal, Magento, Yii, CakePHP, and others noted in the project materials.

Key features

  • Many built-in log handlers
  • Formatters and processors
  • PSR-3 compatible interface
  • Accepts PSR-3 log levels
  • Composable logging strategies
  • Stream and file logging support
  • Third-party handler ecosystem
  • Framework integration options

Use cases

  • Application logging in PHP projects
  • Shipping logs to files or services
  • Building custom handler pipelines
  • Swapping loggers via PSR-3
  • Framework-default logging setup

Tags

Similar software

Uptime Kuma

Self-hosted uptime monitoring with status pages and alerts

Uptime Kuma is a self-hosted monitoring tool for checking whether services stay online. It covers many probe types and can notify you through numerous messaging and email channels.

★ 95k⟳ yesterdayMIT
Open Source Alternative to:Pingdom

World Monitor

Real-time global intelligence dashboard for news and geopolitics

World Monitor combines live news, market data, and geopolitical signals on interactive world maps. Available on the web, as desktop builds, a terminal UI, CLI, SDKs, and an MCP server.

★ 91.3k⟳ todayAGPL-3.0
Open Source Alternative to:Liveuamap

Netdata

Per-second full-stack infrastructure observability platform

Netdata collects metrics, logs, and traces where they are generated, with per-second resolution, built-in dashboards, alerts, and machine learning anomaly detection on every metric.

★ 81.7k⟳ todayGPL-3.0
Open Source Alternative to:Application InsightsBetterStack+8

Grafana

Composable observability and data visualization platform

Grafana queries, visualizes, and alerts on metrics, logs, and traces from many backends. Teams build and share dashboards to explore operational data.

★ 78.2k⟳ todayAGPL-3.0
Open Source Alternative to:BetterStackNew Relic

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

Sentry

Developer error tracking and performance monitoring

Sentry is a debugging platform for detecting, tracing, and fixing application issues. SDKs connect code to error, performance, replay, and related signals in one workflow.

★ 45.9k⟳ todaySource-available