PHPackages                             mehmetnky/logger - 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. mehmetnky/logger

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

mehmetnky/logger
================

A light-weight logger library

10PHP

Since Feb 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mehmetnky/logger)[ Packagist](https://packagist.org/packages/mehmetnky/logger)[ RSS](/packages/mehmetnky-logger/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Logger
======

[](#logger)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A lightweight PSR-3 logger

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

[](#installation)

```
$ composer require mehmetnky/logger
```

Usage
-----

[](#usage)

```
use Mehmetnky\Logger\Logger;

// Creates an "app.log" file in root folder.
$logger = new Logger();
// Or you can specify a path for your log file.
$logger = new Logger('custom/path/to/my.log');

$logger->emergency('Log message', ['additional', 'information']);
$logger->alert('Log message', ['additional', 'information']);
$logger->critical('Log message', ['additional', 'information']);
$logger->error('Log message', ['additional', 'information']);
$logger->warning('Log message', ['additional', 'information']);
$logger->notice('Log message', ['additional', 'information']);
$logger->info('Log message', ['additional', 'information']);
$logger->debug('Log message', ['additional', 'information']);

/* A Sample Log
[2023-02-27 11:06:34] DEBUG: Log message
MoreInfo:
0: additional
1: information
*/
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1bfc02dcef557ad2e530bd0d25ea4ffc1e51bcee53aa2f665fee9e7f4512bf7?d=identicon)[mehmetnky](/maintainers/mehmetnky)

---

Top Contributors

[![mehmetnky](https://avatars.githubusercontent.com/u/49030180?v=4)](https://github.com/mehmetnky "mehmetnky (2 commits)")

### Embed Badge

![Health badge](/badges/mehmetnky-logger/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.4k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M273](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M337](/packages/open-telemetry-sdk)

PHPackages © 2026

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