承接 blackbricksoftware/civicrm-container-logs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

blackbricksoftware/civicrm-container-logs

最新稳定版本:v1.2.0

Composer 安装命令:

composer require blackbricksoftware/civicrm-container-logs

包简介

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

README 文档

README

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

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

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

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; values from RFC 5424):

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

Requirements

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

References

统计信息

  • 总下载量: 83
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2025-08-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固