PHPackages                             webtotal/monolog-init - 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. webtotal/monolog-init

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

webtotal/monolog-init
=====================

Very basic and light Dependency Injector Container for Monolog

0.1.2(12y ago)03.7k1MITPHPPHP &gt;=5.3.0

Since Jun 20Pushed 12y ago2 watchersCompare

[ Source](https://github.com/webtotal/Monolog-Init)[ Packagist](https://packagist.org/packages/webtotal/monolog-init)[ Docs](http://www.github.com/kamisama/monolog-init/)[ RSS](/packages/webtotal-monolog-init/feed)WikiDiscussions master Synced today

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

Monolog-Init
============

[](#monolog-init)

Very basic and light Dependency Injector Container for Monolog

Helps create the following handler

- Cube
- RotatingFile
- ChromePHP
- Syslog
- Socket
- MongoDB
- CouchDB
- HipChat
- PushOver
- ZendMonitor

from 2 strings : `` ``

The second argument will be split, and pass to the handler `__construct()`.

Usage
-----

[](#usage)

Download and include the MonologInit class in your code, or install it via Composer.

Usage example :

```
$logger = new MonologInit('Cube', 'udp://127.0.0.1:1080');

```

To pass more than one parameter, separate them with a comma

```
$logger = new MonologInit('Cube', 'udp://127.0.0.1:1080,0,1');

```

And use it like that :

```
$logger->getInstance()->addInfo('hi ! This is my first log');

```

Where to use
------------

[](#where-to-use)

This container is usefull for creating remote log, for instance via CLI, where you can't pass object.

There is already a SymfonyBundle that does the same thing, but it's … very heavy.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~347 days

Total

2

Last Release

4412d ago

### Community

Maintainers

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

---

Top Contributors

[![wa0x6e](https://avatars.githubusercontent.com/u/495709?v=4)](https://github.com/wa0x6e "wa0x6e (6 commits)")[![kamilkowalski](https://avatars.githubusercontent.com/u/801356?v=4)](https://github.com/kamilkowalski "kamilkowalski (2 commits)")

---

Tags

log

### Embed Badge

![Health badge](/badges/webtotal-monolog-init/health.svg)

```
[![Health](https://phpackages.com/badges/webtotal-monolog-init/health.svg)](https://phpackages.com/packages/webtotal-monolog-init)
```

###  Alternatives

[symfony/monolog-bundle

Symfony MonologBundle

2.9k262.9M1.8k](/packages/symfony-monolog-bundle)[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M356](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[mhcg/monolog-wp-cli

Extension for Monolog to support outputting to WP-CLI (The WordPress command line interface) when running wp command lines.

10112.6k1](/packages/mhcg-monolog-wp-cli)

PHPackages © 2026

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