PHPackages                             phore/log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. phore/log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

phore/log
=========

Logging class

v2.0.2(2y ago)09.1k↓20%5MITPHPPHP &gt;=8.1CI failing

Since Sep 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/phore/phore-log)[ Packagist](https://packagist.org/packages/phore/log)[ Docs](https://infracamp.org/project/phore)[ RSS](/packages/phore-log/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (8)Used By (5)

Phore log :: PSR-3 compatible logger
====================================

[](#phore-log--psr-3-compatible-logger)

[![Actions Status](https://github.com/phore/phore-log/workflows/tests/badge.svg)](https://github.com/phore/phore-log/actions)

- PSR-3 compliant logger
- Multiple targets (syslog, file, pipe) with individual configuration
- Quick configuration with single uri
- Multi-format support

Installation
------------

[](#installation)

```
composer require phore/log
```

Logger Usage
------------

[](#logger-usage)

**Easy usage**

```
phore_Log("Some log message"); // Debug message
phore_log("Value :val expected", ["val"=>"some unescaped value"]); // Auto escaping
phore_log()->emergency("Emergency Message");
```

Configuration
-------------

[](#configuration)

**Global configuration**

```
PhoreLogger::Register(PhoreLoggerFactory::BuildFromUri("syslog+udp://metrics.host.tld:4200?tag=server1"));
```

**Multi instance**

```
$logger = PhoreLoggerFactory::BuildFromUri();

```

### Logging

[](#logging)

```
phore_log("something to log :message", ["message"=>"Hello"]);

phore_log()->setLogLevel(LogLevel::DEBUG);
phore_log()->emergency("emergency");

```

### LogLevel

[](#loglevel)

LogLevelCodeLogLevel::EMERGENCY0LogLevel::ALERT1LogLevel::CRITICAL2LogLevel::ERROR3LogLevel::WARNING4LogLevel::NOTICE5LogLevel::INFO6LogLevel::DEBUG7 (default)### Logging configuration

[](#logging-configuration)

You can specify one or more logger with different log levels.

```
syslog+udp://:/?severity=4&
syslogng+udp://
def://stdout?severity=4
def://stderr?severity=4
file:///var/log/xy.log?severity=4

```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~338 days

Recently: every ~404 days

Total

6

Last Release

787d ago

Major Versions

v1.1.1 → v2.0.02024-05-08

PHP version history (2 changes)v1.0PHP &gt;=7.1

v2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/878a384d056698a2400e4b7c8858db05a6caebb2c560e67151be36d46d58def0?d=identicon)[dermatthes](/maintainers/dermatthes)

---

Top Contributors

[![dermatthes](https://avatars.githubusercontent.com/u/13380559?v=4)](https://github.com/dermatthes "dermatthes (63 commits)")

---

Tags

loggingsyslog

### Embed Badge

![Health badge](/badges/phore-log/health.svg)

```
[![Health](https://phpackages.com/badges/phore-log/health.svg)](https://phpackages.com/packages/phore-log)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M335](/packages/sentry-sentry)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

34424.8M87](/packages/rollbar-rollbar)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[nelmio/js-logger-bundle

Adds logging of JS errors in your Symfony application

1791.3M](/packages/nelmio-js-logger-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
