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

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

iglocska/monolog-init
=====================

Very basic and light Dependency Injector Container for Monolog. Fork of Kamisama's monolog-init for MISP

034.7k—3.2%1PHP

Since Sep 5Pushed 1y agoCompare

[ Source](https://github.com/iglocska/Monolog-Init)[ Packagist](https://packagist.org/packages/iglocska/monolog-init)[ RSS](/packages/iglocska-monolog-init/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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
- Stream
- Redis

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

22

—

LowBetter than 22% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3668672?v=4)[Andras Iklody](/maintainers/iglocska)[@iglocska](https://github.com/iglocska)

---

Top Contributors

[![wa0x6e](https://avatars.githubusercontent.com/u/495709?v=4)](https://github.com/wa0x6e "wa0x6e (10 commits)")[![iglocska](https://avatars.githubusercontent.com/u/3668672?v=4)](https://github.com/iglocska "iglocska (2 commits)")[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (1 commits)")[![rednut](https://avatars.githubusercontent.com/u/1188531?v=4)](https://github.com/rednut "rednut (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/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.2M138](/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)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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