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

ActiveLibrary

lambelcebur/mongodb-logger
==========================

MongoDb Logger integration to Lam

00PHP

Since Jan 10Pushed 6y agoCompare

[ Source](https://github.com/Belcebur/lambelcebur-mongodb-logger)[ Packagist](https://packagist.org/packages/lambelcebur/mongodb-logger)[ RSS](/packages/lambelcebur-mongodb-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Lam-mongodb-logger
==================

[](#lam-mongodb-logger)

MongoDB Logger

See
---

[](#see)

-

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

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
composer require lambelcebur/mongodb-logger
```

Then add `LamBelcebur\MongoDBLogger` to your `config/application.config.php` and copy `config/lambelcebur-mongodb-logger.global.php.dist` to your autoload config folder

```
namespace LamBelcebur\MongoDBLogger;

use LamBelcebur\MongoDBLogger\Factory\ErrorLoggerFactory;
use LamBelcebur\MongoDBLogger\Factory\ExceptionLoggerFactory;
use LamBelcebur\MongoDBLogger\Factory\FatalErrorLoggerFactory;
use LamBelcebur\MongoDBLogger\Factory\Request2XXLoggerFactory;
use LamBelcebur\MongoDBLogger\Factory\Request3XXLoggerFactory;
use LamBelcebur\MongoDBLogger\Factory\Request4XXLoggerFactory;
use LamBelcebur\MongoDBLogger\Factory\Request5XXLoggerFactory;
use Laminas\Log\Processor\RequestId;

return [
    'service_manager' => [
        'factories' => [
            FatalErrorLoggerFactory::SERVICE_NAME => FatalErrorLoggerFactory::class,
            ErrorLoggerFactory::SERVICE_NAME => ErrorLoggerFactory::class,
            ExceptionLoggerFactory::SERVICE_NAME => ExceptionLoggerFactory::class,
            Request2XXLoggerFactory::SERVICE_NAME => Request2XXLoggerFactory::class,
            Request3XXLoggerFactory::SERVICE_NAME => Request3XXLoggerFactory::class,
            Request4XXLoggerFactory::SERVICE_NAME => Request4XXLoggerFactory::class,
            Request5XXLoggerFactory::SERVICE_NAME => Request5XXLoggerFactory::class,
        ],
    ],
    __NAMESPACE__ => [
        'writers' => [
            'defaultOptions' => [
                'manager' => [
                    'uri' => 'mongodb://127.0.0.1/',
                    'uriOptions' => [],
                    'driverOptions' => [],
                ],
                'database' => 'rubi_log',
                'collection' => 'base',
                'writeConcern' => null,
                'formatter' => null,
                'filters' => [],
            ],
            ErrorLoggerFactory::SERVICE_NAME => [
                'collection' => 'error_handler',
            ],
            ExceptionLoggerFactory::SERVICE_NAME => [
                'collection' => 'exception',
            ],
            FatalErrorLoggerFactory::SERVICE_NAME => [
                'collection' => 'fatal_error',
            ],
            Request2XXLoggerFactory::SERVICE_NAME => [
                'collection' => 'request_2xx',
            ],
            Request3XXLoggerFactory::SERVICE_NAME => [
                'collection' => 'request_3xx',
            ],
            Request4XXLoggerFactory::SERVICE_NAME => [
                'collection' => 'request_4xx',
            ],
            Request5XXLoggerFactory::SERVICE_NAME => [
                'collection' => 'request_5xx',
            ],
        ],
        'processors' => [
            'default' => [
                'requestId' => [
                    'name' => RequestId::class,
                ],
            ],
        ],
        'loggers' => [
            FatalErrorLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
            ErrorLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
            ExceptionLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
            Request2XXLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
            Request3XXLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
            Request4XXLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
            Request5XXLoggerFactory::SERVICE_NAME => [
                'enable' => true,
            ],
        ],
    ],
];
```

Custom Configuration
--------------------

[](#custom-configuration)

You can enable or disable each logger and override the logger settings.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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://www.gravatar.com/avatar/27a4aba5946d62e4e0d320437ffced1e3628dfc22172dbf20bf832950d0360dc?d=identicon)[Belcebur](/maintainers/Belcebur)

### Embed Badge

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

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

PHPackages © 2026

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