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

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

wilkques/log
============

PHP Log

v3.2.6(1y ago)0139MITPHPPHP &gt;=5.4

Since Jun 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wilkques/php-log)[ Packagist](https://packagist.org/packages/wilkques/log)[ RSS](/packages/wilkques-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Log for PHP
===========

[](#log-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/5c02b0858dbd3c976d5a35eccdbba99e1259d7420d336eca1797c5dd25387b1f/68747470733a2f2f706f7365722e707567782e6f72672f77696c6b717565732f6c6f672f762f737461626c65)](https://packagist.org/packages/wilkques/log)[![License](https://camo.githubusercontent.com/573130c9ca76ff70029924a7c91473c57ee4405a9906a302796e6f8c0f2c38ca/68747470733a2f2f706f7365722e707567782e6f72672f77696c6b717565732f6c6f672f6c6963656e7365)](https://packagist.org/packages/wilkques/log)

```
composer require wilkques/log

```

How to use
----------

[](#how-to-use)

```
$log = \Wilkques\Log\Log::make();

// or

$log = logger();

$log->logName(''); // default system.log

$log->setDirectory(''); // default ./storage/logs

$log->info(123);

$log->debug(123);

$log->warning(123);

$log->error(123);

$log->critical(123);

$log->error(new \Exception(123));

$log->critical(new \Exception(456));

// or

Wilkques\Log\Log::info('123');
Wilkques\Log\Log::debug('123');
Wilkques\Log\Log::warning('123');
Wilkques\Log\Log::error('123');
Wilkques\Log\Log::critical('123');
Wilkques\Log\Log::error(new \Exception(123));
Wilkques\Log\Log::critical(new \Exception(456));
```

output

```
[2025-05-14 11:29:14] [INFO] 123
[2025-05-14 11:29:14] [DEBUG] 123
[2025-05-14 11:29:14] [WARNING] 123
[2025-05-14 11:29:14] [ERROR] 123
[2025-05-14 11:29:14] [CRITICAL] 123
[2025-05-14 11:29:14] [ERROR] exception 'Exception' with message '123' in C:\works\projects\packages\54\test.php:70
Stack trace:
#0 {main}
[2025-05-14 11:29:14] [CRITICAL] exception 'Exception' with message '456' in C:\works\projects\packages\54\test.php:71
Stack trace:
#0 {main}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance49

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

5

Last Release

369d ago

Major Versions

v1.0.0 → v2.0.02023-07-06

v2.0.2 → v3.0.02025-05-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/906e907ec7e3dbe49f32aebd0f36488176d3736a65d38675753ba9a6a21017b6?d=identicon)[wilkques](/maintainers/wilkques)

---

Top Contributors

[![wilkques](https://avatars.githubusercontent.com/u/51186879?v=4)](https://github.com/wilkques "wilkques (14 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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