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

ActiveLibrary

giolaza/logger
==============

Server .logs library

1.0.9(3y ago)0691MITPHPPHP &gt;=7.1CI failing

Since Jun 29Pushed 3y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (11)Used By (1)

Logger by GioLaza
=================

[](#logger-by-giolaza)

Logger for engine

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

[](#installation)

```
composer require giolaza/logger
```

Configuration
-------------

[](#configuration)

```
define('GIOLAZA_SHOW_ERRORS', false);
define('GIOLAZA_SAVE_ERRORS', true);
define('GIOLAZA_LOGS_FOLDER', __DIR__ . '/../___productionLogs');
```

Constant `GIOLAZA_SHOW_ERRORS` defines display detail information about error or not. if value is `false` engine will print `something went wrong`.

Constant `GIOLAZA_SAVE_ERRORS` defines save detail information about error in files or not.

Constant `GIOLAZA_LOGS_FOLDER` defines log folder link. It's recommended to use folder outside root folder or add `.htaccess` to restrict direct access from `www`

Usage
-----

[](#usage)

```
GioLaza\Logger\Log::logError(text: 'ANY TEXT',filename: 'filename.log', engineForceStop: true, dispalyErrors: true)
```

`engineForceStop` - means need or not use `die``dispalyErrors` - is method variable, if constant allows show errors, method will print it.

```
GioLaza\Logger\Log::logError(text: 'DB connection error ',filename: 'db.log')
```

This code will print your text,save text to file and force stop php execution

```
GioLaza\Logger\Log::logError(text: 'DB connection error ',filename: 'db.log',engineForceStop: true, dispalyErrors: false)
```

This code will NOT print your text,save text in file and force stop php execution

```
GioLaza\Logger\Log::logError(text: 'User id: 12 ',filename: 'db.log',engineForceStop: true, dispalyErrors: false)
```

This code will NOT print your text or force stop php execution, just save text in file

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Recently: every ~255 days

Total

10

Last Release

1107d ago

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

1.0.9PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22479232?v=4)[GL](/maintainers/giolaza)[@giolaza](https://github.com/giolaza)

---

Top Contributors

[![giolaza](https://avatars.githubusercontent.com/u/22479232?v=4)](https://github.com/giolaza "giolaza (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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