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

ActiveBitrix-module

citfact/logger
==============

Logger for 1C-Bitrix

62075PHP

Since May 2Pushed 10y ago13 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Логгер для 1C-Bitrix
====================

[](#логгер-для-1c-bitrix)

Модуль позволяет логгировать данные в вашем приложение. Расширяет функционал [monolog](https://github.com/Seldaek/monolog).

Требования
----------

[](#требования)

- PHP версия &gt;= 5.3.3
- Bitrix версия &gt;= 14

Установка
---------

[](#установка)

Создайте или обновите `composer.json` файл и запустите `php composer.phar update`

```
  {
      "require": {
          "citfact/logger": "dev-master"
      }
  }
```

Подключите composer автолоадер

```
// init.php

require_once $_SERVER['DOCUMENT_ROOT'].'/vendor/autoload.php';
```

Пример использования
--------------------

[](#пример-использования)

```
\Bitrix\Main\Loader::includeModule('citfact.logger');

// Create a log channel
$logger = new \Citfact\Logger\Logger('Sale');

$logger->addDebug('Debug');
$logger->addInfo('Info');
$logger->addNotice('Notice');
$logger->addWarning('Warning');
$logger->addError('Error');
$logger->addCritical('Critical');
$logger->addAlert('Alert');
$logger->addEmergency('Emergency');
```

Регистрация каналов глобально в приложение

```
// init.php

\Bitrix\Main\Loader::includeModule('citfact.logger');

$sale = new \Citfact\Logger\Logger('Sale');

// Или другой хандлер
$order = new \Monolog\Logger('Order');
$order->pushHandler(new \Monolog\Handler\StreamHandler('path/to/your.log', Logger::WARNING));

// Регистрируем
Monolog\Registry::addLogger($sale);
Monolog\Registry::addLogger($order);

// test.php

Monolog\Registry::sale()->addError('Error');
Monolog\Registry::order()->addAlert('Alert');
```

###  Health Score

25

—

LowBetter than 39% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://www.gravatar.com/avatar/3abdd8bcea16ac70708ec4edb61d797659be569a87318db8a37889af1b21dd1d?d=identicon)[onEXHovia](/maintainers/onEXHovia)

---

Top Contributors

[![onEXHovia](https://avatars.githubusercontent.com/u/3332033?v=4)](https://github.com/onEXHovia "onEXHovia (26 commits)")

### Embed Badge

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

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

PHPackages © 2026

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