PHPackages                             alexkratky/loggerx - 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. alexkratky/loggerx

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

alexkratky/loggerx
==================

Class to easy work with logs.

v1.0.0(6y ago)05111MITPHPPHP &gt;=7.0

Since Sep 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AlexKratky/LoggerX)[ Packagist](https://packagist.org/packages/alexkratky/loggerx)[ Docs](https://panx.eu/)[ RSS](/packages/alexkratky-loggerx/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (6)Used By (1)

LoggerX
=======

[](#loggerx)

Class to work with logs.

### Installation

[](#installation)

`composer require alexkratky/loggerx`

### Logging the data

[](#logging-the-data)

Writing data to log using panx-framework is quite easy. All you need to do, is calling function `Logger::log($text, $file)`, where `$text` is the text that you want to log and `$file` is the name of log. The second parameter is optional, and if you do not pass any data, Logger Class will use `main.log` as default log file name.

This function returns the number of bytes that were written to the file, or **FALSE** on failure. So if you want to check, if the data was written successfully, you can do it by:

```
require 'vendor/autoload.php';

use AlexKratky\Logger;
use AlexKratky\Cache;

Logger::setDirectory(__DIR__ . '/logs/');
Cache::setDirectory(__DIR__ . '/logs/');

if(Logger::log("text") !== false) {
    // data was written successfully
} else {
    // data was not written successfully
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

2190d ago

Major Versions

v0.3.0 → v1.0.02020-05-14

### Community

Maintainers

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

---

Top Contributors

[![AlexKratky](https://avatars.githubusercontent.com/u/33813757?v=4)](https://github.com/AlexKratky "AlexKratky (5 commits)")

---

Tags

logphploggingdatalogsrealtime

### Embed Badge

![Health badge](/badges/alexkratky-loggerx/health.svg)

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

###  Alternatives

[analog/analog

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

3451.5M24](/packages/analog-analog)[hedii/laravel-gelf-logger

A Laravel package to send logs to a gelf compatible backend like graylog

1333.4M10](/packages/hedii-laravel-gelf-logger)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[phptek/sentry

Sentry.io integration for SilverStripe. Binds Sentry.io to SilverStripe's error &amp; exception handling subsystem.

15203.5k3](/packages/phptek-sentry)

PHPackages © 2026

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