bitrix-logger

bitrix-logger is a skill for Claude Code, Codex from bxmaximum/bitrix-framework-skills. It costs 60 tokens per session (1,365 once invoked), scanned A, original, MIT.

A guide to logging in Bitrix using PSR-3, a common PHP interface for recording diagnostic messages. It covers file, system, empty, formatted, named, and third-party loggers.

In plain words
What is it for?
Use it to configure Bitrix loggers, write formatted logs, select named system loggers, and connect Monolog or other PSR-3 loggers.
Why use it?
It helps applications record useful diagnostic information without tying every module to one logging implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure Bitrix loggers, write formatted logs, select named system loggers, and connect Monolog or other PSR-3 loggers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bxmaximum/bitrix-framework-skills/bitrix-logger
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bxmaximum/bitrix-framework-skills --skill bitrix-logger
Clone the repo
git clone --depth 1 https://github.com/bxmaximum/bitrix-framework-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bitrix-logger

README.md
[![agentmods](https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-logger/github.svg)](https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-logger)
Your own site
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-logger"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-logger/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bitrix-logger

Your own site · 80×15
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-logger"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-logger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01365
Opus 5.5 $0.00024 $0.00546
Sonnet 5.5 $0.00012 $0.00273
Haiku 4.5 $0.00006 $0.00136

Measured 19d ago against content hash 901763c65694, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bitrix-logger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bitrix-logger/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Logging (PSR-3)

Baseline: main 23.0+ · Verified: main 26.800.0

Code depends on Psr\Log\LoggerInterface; the implementation is chosen in .settings.php loggers. AddMessage2Log() — compat only.

Implementations (Bitrix\Main\Diag\)

Class Notes
FileLogger(string $fileName, ?int $maxSize = null) default max 1 MB, then renamed to <file>.old; 0 = no rotation
SysLogger(string $prefix = '', int $flags = LOG_ODELAY, int $facility = LOG_USER) system syslog
EventLogger(?string $module, ?string $auditType, ?callable $callback) b_event_log (Event log in admin) — low volume only
LogFormatter($showArguments = false, $argMaxChars = 30) default; placeholders {date} {host} {level} {delimiter} {exception} {trace} + context keys
JsonLinesFormatter (Since main 25.300; older: LogFormatter) writes only $context as one JSON line — the message text is dropped, put it into context

level and formatter settings apply only to Bitrix\Main\Diag\Logger subclasses, not to Monolog.

Get a logger

Since main 26.250* — LoggerFactory + LoggerRegistry:

use Bitrix\Main\Diag\LoggerFactory;
use Bitrix\Main\Diag\LoggerRegistry;

$logger = (new LoggerFactory())->createById('vendor.module.sync'); // NullLogger unless the id is enabled
(new LoggerRegistry())->enable('vendor.module.sync');               // option loggers:logger_is_enabled_<id> = Y
$logger = (new LoggerFactory())->createById('vendor.module.sync', [], false); // skip the registry check
  • Enabled id without a loggers entry → default logger (LOG_FILENAME constant) or NullLogger.
  • Kernel ids created this way stay silent until enabled: main.Messenger.Receiver, main.Messenger.Requeue, main.config.feature, bizproc.imbot, …
  • Logger::create($id, $params) — deprecated since main 26.300, the only API before 26.250; returns null if $id is not configured: $logger = Logger::create('id') ?? new NullLogger();.

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -127 lines · -69 tokens per session 901763c65694
  2. 1mo ago First seen · 235 lines · 129 tokens per session scan A 4ae52a436c3e

Subscribe to this mod's changes

bitrix-logger is a skill published in the GitHub repository bxmaximum/bitrix-framework-skills (45 stars, last pushed 8d ago), licensed MIT. It adds 60 tokens to every session and 1,365 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cdd-report

Analyzes the current CDD session for bugs and enhancement opportunities and files a single aggregate GitHub issue against Oscaner/skills via gh CLI. Open dedup matches become links in the issue body (never comments); closed matches are flagged as regression follow-ups, never reopened. Findings never auto-include…

Oscaner/skills · 95 tokens

roblox-performance

Use when profiling or fixing Roblox performance: low FPS, lag, memory, network load, slow phones, hot paths.

TabooHarmony/roblox-brain · 28 tokens

chaos-engineering

Chaos engineering: hypothesis-driven fault injection to surface weakness before users do. Use when designing a chaos experiment, planning a gameday, choosing what to inject, computing blast radius, or building a chaos maturity model.

borghei/Claude-Skills · 47 tokens

focused-fix

This skill should be used when the user asks to "fix a bug with minimal changes", "analyze change scope for a bugfix", "find the minimal set of files to change", "do a focused bugfix", or "scope a minimal repair".

borghei/Claude-Skills · 56 tokens

incident-commander

Production incident response. Use when handling incidents, classifying severity, reconstructing timelines, writing postmortems, generating comms templates, or building response playbooks with severity scoring and RCA frameworks.

borghei/Claude-Skills · 44 tokens

performance-profiler

Performance profiling for Node.js, Python, and Go: CPU flamegraphs, memory leak detection, bundle analysis, query optimization, and k6 load testing. Use when diagnosing slow endpoints, memory growth, large bundles, or traffic spikes.

borghei/Claude-Skills · 51 tokens