PHPackages                             hopex/simplog - 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. hopex/simplog

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

hopex/simplog
=============

Simple data logging with customize directories.

2.3(3y ago)1611MITPHPPHP ^7.4

Since Dec 24Pushed 3y ago1 watchersCompare

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

READMEChangelog (10)DependenciesVersions (11)Used By (0)

Simple data logging
===================

[](#simple-data-logging)

 [![Package version](https://camo.githubusercontent.com/bb0266f1cc791c95c4e46358b7926837fc596714441b4e427b3e3c44d17c62db/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f7061636b61676973742f686f7065782f646f776e6c6f616473)](https://camo.githubusercontent.com/bb0266f1cc791c95c4e46358b7926837fc596714441b4e427b3e3c44d17c62db/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f7061636b61676973742f686f7065782f646f776e6c6f616473) [![Package version](https://camo.githubusercontent.com/c43856b6fe147fd6dc7de0f7db2a474a51aa908bbdca8761f3f9eb1393932b39/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f7061636b61676973742f686f7065782f7374617273)](https://camo.githubusercontent.com/c43856b6fe147fd6dc7de0f7db2a474a51aa908bbdca8761f3f9eb1393932b39/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f7061636b61676973742f686f7065782f7374617273) [![PHP version](https://camo.githubusercontent.com/d74513a5552001d3291941fe3562daef316e03708611832e49d3209152475ac9/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f76657273696f6e2f706870)](https://camo.githubusercontent.com/d74513a5552001d3291941fe3562daef316e03708611832e49d3209152475ac9/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f76657273696f6e2f706870) [![License](https://camo.githubusercontent.com/4db6876f05a67bef01421d7fb677784b090940b2666e7f74d98c303809ae50eb/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f6c6963656e7365)](https://camo.githubusercontent.com/4db6876f05a67bef01421d7fb677784b090940b2666e7f74d98c303809ae50eb/68747470733a2f2f7061636b616765732d6170692e686f7065782e72752f6170692f73696d706c6f672f6c6963656e7365)

The library contains a simple class, and it's facade, for simple data and exception logging on JSON format.

Installing
----------

[](#installing)

```
composer require hopex/simplog

```

Documentation
-------------

[](#documentation)

MethodsDescriptionExample for usage`setWorkDirectory`Specifies the root directory of the hierarchy of logging levels. It can take several directories in turn one after the other in the form of a standard path.`setWorkDirectory('logging')`
 `setWorkDirectory('logging/sub-folder')``setLevel`Specifies the name of the directory where you want to save the logging file. It can't take several directories in turn one after the other in the form of a standard path.`setLevel('requests')``setTimeZone`Specifies the current timezone.`setTimeZone('UTC')`
 `setTimeZone('Europe/Amsterdam')``setDateFormat`Sets the time format in the main key of one log element in the logging file. Will not be used if V is specified.`setDateFormat('H:i:s')`
 `setDateFormat('(Y) H:i:s')``setItemKey`Sets the primary key of one log element in the logging file. In this case, the current time will not be indicated.`setItemKey('custom-key')``setItemsLimit`Sets the maximum number of elements in a single logging file. The value must be greater than zero. By default, 1000 keys.`setItemsLimit(10)`
 `setItemsLimit(5000)``setPermissions`Sets access rights to the logging file.`setLogFilePermissions(0755)`
 `setLogFilePermissions(644)``setFileName`Sets the name of the logging file.`setFileName('my-requests-logs')``error`Logging any object as an error message.Similarly as for `custom`.`warning`Logging any object as a warning.Similarly as for `custom`.`info`Logging of any object as an informational message.Similarly as for `custom`.`custom`Logging of any object.`custom(new SomeClass())`
 `custom('Some message')`
 `custom(['key' => 'value'])``exception`Logging of the exception object with the possibility of adding additional keys.`exception(new \Exceptions())`
 `exception(new \Exceptions(), true)`
 `exception(new \Exceptions(), false, ['key' => 'value'])``clearLevel`The requirement to clear the directory where the logging file should be saved from other files.`clearLevel()`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% 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 ~2 days

Total

10

Last Release

1220d ago

Major Versions

1.1 → 2.02022-12-27

PHP version history (2 changes)1.0.1PHP ^7.4||^8

1.0.4PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d7ec64ff0836b17239253df61e33600e883856154078464e59bae6c760a8fa7?d=identicon)[Hopex](/maintainers/Hopex)

---

Top Contributors

[![H0pex](https://avatars.githubusercontent.com/u/83059294?v=4)](https://github.com/H0pex "H0pex (14 commits)")[![amoCRM-Schizo](https://avatars.githubusercontent.com/u/117939199?v=4)](https://github.com/amoCRM-Schizo "amoCRM-Schizo (11 commits)")

---

Tags

loggingphp7logphplogginglogger

### Embed Badge

![Health badge](/badges/hopex-simplog/health.svg)

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

###  Alternatives

[logtail/monolog-logtail

Logtail handler for Monolog

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

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[atrapalo/monolog-elasticsearch

A Monolog handler and formatter that makes use of the elasticsearch/elasticsearch package

1123.0k](/packages/atrapalo-monolog-elasticsearch)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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