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

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

robertsaupe/php-logger
======================

php library to create a logger

1.0.5(2y ago)0211MITPHPPHP &gt;=8.2.0

Since Jun 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/robertsaupe/php-logger)[ Packagist](https://packagist.org/packages/robertsaupe/php-logger)[ Docs](https://github.com/robertsaupe/php-logger)[ Fund](https://www.amazon.de/ref=as_li_ss_tl?ie=UTF8&linkCode=ll2&tag=robertsaupe-21&linkId=b79bc86cee906816af515980cb1db95e&language=de_DE)[ GitHub Sponsors](https://github.com/sponsors/robertsaupe)[ RSS](/packages/robertsaupe-php-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (1)

php-logger
==========

[](#php-logger)

[![Minimum PHP version: 8.2](https://camo.githubusercontent.com/babc429305ce499eaa775877791b2e8ffdf6e6a17b2f839a6566e086aebe73f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d626c75652e7376673f636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/robertsaupe/php-logger)[![Packagist Version](https://camo.githubusercontent.com/d6e0e6b78657614e18cc7931576b4e9d9f182dc38fa70fca024053831f2c0a3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6265727473617570652f7068702d6c6f676765723f636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/robertsaupe/php-logger)[![Packagist Downloads](https://camo.githubusercontent.com/8983f6c71b838c8697cfa3b8cef1062b05164d840f62d069a2891b978bd823cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6265727473617570652f7068702d6c6f676765723f636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/robertsaupe/php-logger)[![License](https://camo.githubusercontent.com/31e62e0eff03ce9ddfdf69d8476340d4f541990bfb152cb02a0f342965252997/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE)

php library to create a logger

Supporting
----------

[](#supporting)

[GitHub](https://github.com/sponsors/robertsaupe) | [Patreon](https://www.patreon.com/robertsaupe) | [PayPal](https://www.paypal.com/donate?hosted_button_id=SQMRNY8YVPCZQ) | [Amazon](https://www.amazon.de/ref=as_li_ss_tl?ie=UTF8&linkCode=ll2&tag=robertsaupe-21&linkId=b79bc86cee906816af515980cb1db95e&language=de_DE)

Installing
----------

[](#installing)

```
composer require robertsaupe/php-logger
```

Getting started
---------------

[](#getting-started)

### Basic

[](#basic)

```
use robertsaupe\Logger\LogBasic;

$logger = new LogBasic();

$logger->error('error');
$logger->warning('warning');
$logger->info('info');
$logger->normal('normal');
$logger->verbose('verbose');
$logger->veryverbose('veryverbose');
$logger->debug('debug');

//return messageObject
$message = $logger->normal("Testmessage");
print_r($message);
print_r($message->getArray());

//return all messages
print($logger->getFormattedMessagesByVerbosity());

//return all messages as html
print($logger->getFormattedMessagesByVerbosity(true));
```

### File

[](#file)

```
use robertsaupe\Logger\LogFile;

$logger = new LogFile(dirname(__DIR__).'/logs', 'test');

//now writes the messages to a log-file
```

### HTML

[](#html)

```
use robertsaupe\Logger\LogHTML;

$logger = new LogHTML(dirname(__DIR__).'/logs', 'test');

//now writes the messages to a html-file
```

Credits
-------

[](#credits)

- [Symfony](https://github.com/symfony) for [Filesystem](https://symfony.com/doc/current/components/filesystem.html)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

Recently: every ~156 days

Total

6

Last Release

816d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.0.2

1.0.5PHP &gt;=8.2.0

### Community

Maintainers

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

---

Top Contributors

[![robertsaupe](https://avatars.githubusercontent.com/u/75934406?v=4)](https://github.com/robertsaupe "robertsaupe (13 commits)")

---

Tags

filelogfileloggerhtmlhtmlloggerhtmllogginglibrarylogloggerloggingphpphp8logphplogginglibraryhtmlloggerphp8FileLogfileloggerhtmlloggerhtmllogging

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)

PHPackages © 2026

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