PHPackages                             celema/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. celema/log

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

celema/log
==========

A simple PSR-3 Logger

0.4.0(1mo ago)09MITPHPPHP ^8.5CI passing

Since Jan 31Pushed 1w ago1 watchersCompare

[ Source](https://github.com/celemas/log)[ Packagist](https://packagist.org/packages/celema/log)[ Docs](https://celema.dev/log)[ RSS](/packages/celema-log/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Celema Log
==========

[](#celema-log)

[![ci](https://camo.githubusercontent.com/3b2b467704a957f6b86fb34c87258977ad79ef8463e44d41a8d961c23ece3130/68747470733a2f2f636f6465666c6f652e636f6d2f63656c656d612f6c6f672f6261646765732f776f726b666c6f77732f63692e796d6c2f62616467652e7376673f7374796c653d666c6174266c6f676f3d666f7267656a6f266c6f676f436f6c6f723d7768697465266c6162656c3d6369)](https://codefloe.com/celema/log/actions)[![code coverage](https://camo.githubusercontent.com/4c0086eaab94ddd83210d0cbcf0db1d805ecfafad0084eccfc5661c8f4996cd9/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246636f762e63656c656d612e64657625324663656c656d612532466c6f67253246636f646525324662616467652e6a736f6e)](https://cov.celema.dev/celema/log/code)[![type coverage](https://camo.githubusercontent.com/9ddbbd4acf0fe31e517eec87027a5fd4be3ba3557cdb751df263e5d10afd75e2/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246636f762e63656c656d612e64657625324663656c656d612532466c6f67253246747970657325324662616467652d636f7665722e6a736f6e)](https://cov.celema.dev/celema/log/types)[![psalm level](https://camo.githubusercontent.com/a09326a36b7a2034a6585d868dd633f0b574cdab094955eb441a8ea5c7ff89c3/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246636f762e63656c656d612e64657625324663656c656d612532466c6f67253246747970657325324662616467652d6c6576656c2e6a736f6e)](https://cov.celema.dev/celema/log/types)[![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

A simple PSR-3 logger using PHP's `error_log` function.

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

[](#installation)

```
composer require celema/log
```

Usage
-----

[](#usage)

Create a logger without arguments to write to PHP's default SAPI error logger.

```
use Celema\Log\Logger;

$logger = new Logger();
$logger->info('Application started');
```

See the [documentation](docs/index.md) for file logging, level filtering, and formatter usage.

Testing
-------

[](#testing)

During testing, PHP's `error_log` ini setting is set to a temporary file. To print the output to the console, prepend a special env variable to the PHPUnit cli command, as follows:

```
ECHO_LOG=1 phpunit
```

### Test Environment Requirements

[](#test-environment-requirements)

Tests require:

- `ini_set()` function enabled (for `error_log` redirection)
- Writable system temp directory (for test log file isolation)
- PHP `error_reporting` must be modifiable

These are standard in development environments but may fail in restricted PHP configurations where `ini_set` is disabled via `disable_functions`.

License
-------

[](#license)

This project is licensed under the [MIT license](LICENSE.md).

###  Health Score

40

—

FairBetter than 85% of packages

Maintenance94

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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 ~55 days

Total

4

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c15f1690b643e5cbf205fd28f3b2ebb6c7448d34774bb92b7952150c901a689?d=identicon)[ernstla](/maintainers/ernstla)

---

Top Contributors

[![ernstla](https://avatars.githubusercontent.com/u/683620?v=4)](https://github.com/ernstla "ernstla (147 commits)")

---

Tags

logpsr-3loggingcelema

### Embed Badge

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

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

###  Alternatives

[monolog/monolog

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

22.3k1.1B9.1k](/packages/monolog-monolog)[sentry/sentry

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

1.9k262.1M382](/packages/sentry-sentry)[analog/analog

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

3441.6M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

185649.9k7](/packages/inpsyde-wonolog)[elastic/ecs-logging

Format and enrich your log files in the elastic common schema

211.1M4](/packages/elastic-ecs-logging)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.1M26](/packages/apix-log)

PHPackages © 2026

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