PHPackages                             blackbricksoftware/civicrm-container-logs - 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. blackbricksoftware/civicrm-container-logs

ActiveCivicrm-ext[Logging &amp; Monitoring](/categories/logging)

blackbricksoftware/civicrm-container-logs
=========================================

Write CiviCRM Logs to stderr. Useful for running CiviCRM inside a Docker container.

v1.2.0(2mo ago)183AGPL-3.0PHPPHP ^8.3

Since Aug 9Pushed 2mo agoCompare

[ Source](https://github.com/blackbricksoftware/civicrm-container-logs)[ Packagist](https://packagist.org/packages/blackbricksoftware/civicrm-container-logs)[ RSS](/packages/blackbricksoftware-civicrm-container-logs/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (2)Versions (10)Used By (0)

CiviCRM Extension: Container Logging
====================================

[](#civicrm-extension-container-logging)

This extension replaces the default CiviCRM log channels to send all logs to `stderr` (currently). This is especially useful when running CiviCRM inside a Docker container, as it allows logs to be consolidated and managed by the container runtime.

Features
--------

[](#features)

- Redirects all CiviCRM logs to `stderr`
- Simplifies log management in containerized environments

Usage
-----

[](#usage)

1. Install the extension in your CiviCRM installation.
2. Enable the extension from the CiviCRM admin interface.
3. Logs will now appear in the container's standard error output.

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

[](#configuration)

### Log Level Configuration

[](#log-level-configuration)

The minimum log level can be set three ways, highest precedence first:

1. **PHP constant** in `civicrm.settings.php`: `define('CIVICRM_CONTAINER_LOGS_LEVEL', 'warning');`
2. **Environment variable** (recommended for containerised deployments): `CIVICRM_CONTAINER_LOGS_LEVEL=warning` — picked up natively by CiviCRM's `SettingsManager` because the setting metadata declares `is_env_loadable: TRUE`, `global_name: 'CIVICRM_CONTAINER_LOGS_LEVEL'`.
3. **`$civicrm_setting` in `civicrm.settings.php`**: `$civicrm_setting['domain']['container_logs_level'] = 'warning';`

The setting is declared `is_constant: TRUE`, so attempts to write via `Civi::settings()->set(...)` / the API / the admin UI are rejected with a helpful error pointing to the three supported sources above.

Default: `debug` (everything passes through).

Accepted values are any Monolog level name (see [`\Monolog\Level`](https://seldaek.github.io/monolog/doc/01-usage.html#log-levels); values from [RFC 5424](https://datatracker.ietf.org/doc/html/rfc5424)):

- **DEBUG (100)**, **INFO (200)**, **NOTICE (250)**, **WARNING (300)**,
- **ERROR (400)**, **CRITICAL (500)**, **ALERT (550)**, **EMERGENCY (600)**.

Requirements
------------

[](#requirements)

- PHP8.1 or newer
- CiviCRM installation
- Docker container environment (recommended)

References
----------

[](#references)

- [Replace core logging with Monolog](https://lab.civicrm.org/extensions/monolog)
- [CiviCRM Developer Guide: Logging](https://docs.civicrm.org/dev/en/latest/framework/logging/)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance87

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Recently: every ~26 days

Total

9

Last Release

63d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.2.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/49ef798c46472a4224ac686d224ee867915858ae5325a60f5feee5c1cb833928?d=identicon)[redbeanbananas](/maintainers/redbeanbananas)

### Embed Badge

![Health badge](/badges/blackbricksoftware-civicrm-container-logs/health.svg)

```
[![Health](https://phpackages.com/badges/blackbricksoftware-civicrm-container-logs/health.svg)](https://phpackages.com/packages/blackbricksoftware-civicrm-container-logs)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

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

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[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)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)

PHPackages © 2026

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