PHPackages                             elijahcruz12/eclogger - 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. elijahcruz12/eclogger

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

elijahcruz12/eclogger
=====================

Create Error Logs With Ease

0.0.6(6y ago)09[1 issues](https://github.com/elijahcruz12/eclogger/issues)MITPHPPHP ^7.0

Since Feb 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/elijahcruz12/eclogger)[ Packagist](https://packagist.org/packages/elijahcruz12/eclogger)[ RSS](/packages/elijahcruz12-eclogger/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

ECLogger
========

[](#eclogger)

ECLogger is a Composer Package that allows you to create log files for you to use in your project.

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

[](#installation)

The easiest way to install is using **Composer**Composer Globally installed: `composer require elijahcruz12/eclogger`Composer.phar file: `php composer.phar require elijahcruz12/eclogger`

Usage
-----

[](#usage)

There are two ways you can use ECLogger, Either using a single file, or by using multiple files. Both ways work differently than the other (as of now). There are also different log types you can use.

### The Different Log Types There Are

[](#the-different-log-types-there-are)

There are *8* different types of logs you can use. These are the [RFC 3339](https://tools.ietf.org/html/rfc3339) Standards. They are:

```
DEBUG 100
INFO 200
NOTICE 250
WARNING 300
ERROR 400
CRITICAL 500
ALERT 550
EMERGENGY 600

```

### Log Format

[](#log-format)

The Log Format is Fairly Simple. Is works like this: `DATE_ATOM . LOG_TYPE . LOG_MESSAGE`This causes each log entry to look like this: `2013-04-12T15:52:01+00:00 ERROR: This is an error.`

### Single File Usage

[](#single-file-usage)

If you are using one file to store all your log files, you can choose the file using the `ecSingleLog` class:

```

```

Let's break this down for you so you can understand what is going on here: `$log->file('single.log');` = This function selects the file you want to use. You can use any file. This also allows you to use a file in a subdirectory. `$log->error('This is an error message');` = With this function, you can log an error into the file. Each of the log types has a different function based on their own name (eg. `debug()`, `alert()`, or `notice`).

### Multi File Usage

[](#multi-file-usage)

If you need or want to use a different file for each log type, you can do so using the `ecMultiLog` class.

```

```

Let's break this down to make this easier. `$log->newFallbackLog('fallback.log');` = This log allows you to have a log file to use for any log types that haven't been initialized. In the case of the script used above, if you were to add the line `$log->newLog('debug', 'This is a debug log.');` before the closing php tag, it would result in that debug log going into the fallback log file.

Functions Reference
-------------------

[](#functions-reference)

*The function reference is a work in progress*

### Single File

[](#single-file)

FunctionDescriptionfile()Opens file to use as the single log, creates file if it does not exist.debug()Adds a debug log to the single log file.info()Adds an info log to the single log file.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

6

Last Release

2277d ago

PHP version history (3 changes)0.0.1PHP ^5.1

0.0.3PHP 7.1.0

0.0.4PHP ^7.0

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/elijahcruz12-eclogger/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M137](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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