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

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

evolutionphp/logger
===================

Simple PHP logger based in the logger of CodeIgniter 3.

1.1(3y ago)036MITPHPPHP &gt;=7.4

Since Mar 7Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Simple PHP Logger
=================

[](#simple-php-logger)

Simple PHP logger, save logs in files.

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

[](#installation)

Use [Composer](http://getcomposer.org) to install Logger into your project:

```
composer require evolutionphp/logger
```

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

[](#configuration)

1. Logging Directory Path: directory where log files will be saved.

```
$config['path'] = __DIR__.'/logs/';
```

2. File Extension: set the extension of your log files. Leaving it blank will default to 'php'.

```
$config['ext'] = 'php';
```

3. Log File Permissions: The file system permissions to be applied on newly created log files.
    This MUST be an integer (no quotes) and you MUST use octal integer notation (i.e. 0700, 0644, etc.)

```
   $config['file_permissions'] = 0644;
```

4. Logging Level: You can enable error logging by setting a level over zero. The level determines what gets logged. Threshold options are:
    0 = Disables logging, Error logging TURNED OFF
    1 = Error Messages (including PHP errors)
    2 = Debug Messages
    3 = Informational Messages
    4 = All Messages

```
$config['level'] = 1;
//OR Debug Messages and Informational Messages, without Error Messages
$config['level'] = array(2,3);
```

5. Date Format: Each item that is logged has an associated date. You can use PHP date codes to set your own date formatting

```
$config['date_format'] = 'Y-m-d H:i:s';
```

**Initialize**

```
$logger = new \EvolutionPHP\Logger\Log($config);
//Write logs
$logger->write_log('error','This is an error message.');
$logger->write_log('debug','This is a debug message.');
$logger->write_log('info','This is an info message.');
```

If you already initialize the class, you can call an instance without rewriting the configuration

```
function log_message($level, $message){
    $logger = \EvolutionPHP\Logger\Log::instance();
    $logger->write_log($level, $message);
}
log_mesage('error','This is a second error.');
```

Authors
-------

[](#authors)

This library was primarily developed by [CodeIgniter 3](https://codeigniter.com/) and modified by [Andres M](https://twitter.com/EvolutionPHP).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d5a42f2155ba37cd77c46f9e57c613e0c08394b5e2b59e8ff77e0d44adaf907?d=identicon)[EvolutionPHP](/maintainers/EvolutionPHP)

---

Top Contributors

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

---

Tags

phplogslogger

### Embed Badge

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

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

###  Alternatives

[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[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)
