Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Make the logger replaceable

オープン
#1,568 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, node.js, typescript
領域
tooling

調査の方向性

Start with packages/testcontainers/src/common/logger.ts and inspect the exported logger instances and their call sites for container, build, pull, and exec output. Check how the current debug logger handles DEBUG and NODE_ENV=test, and review the package exports because log is public API. Done means a replaceable logger supports the requested levels while the default preserves existing namespace controls and output separation.

索引モデルが issue の本文から書いたものです。

説明

enhancement minor

What happens

All logging goes through the debug package, under six namespaces (testcontainers, testcontainers:containers, :compose, :build, :pull, :exec). The only control is the DEBUG environment variable.

  • Logs cannot be sent to the application's logger or to a test reporter.
  • The level cannot be set from code.
  • Nothing is shown by default, so the first pull of a large image looks like a hang.
  • When NODE_ENV is test, the logger switches its output from stderr to console.log.

Expected

  • A logger interface that can be replaced: setLogger({ debug, info, warn, error }).
  • The debug-based logger stays the default, so DEBUG=testcontainers* keeps working.
  • Container, build, pull and exec output remain separable.

Where

packages/testcontainers/src/common/logger.ts and its exported instances.

Notes

  • Go has log.SetDefault(logger). Java logs through SLF4J, so the application chooses the backend.
  • log is exported from the package today, so its shape is public API.

Dependencies

  • Nothing blocks this. It can start now.
主要言語
TypeScript
スター
2.6k
フォーク
274
平均マージ
1日 14時間
マージ済み PR(30日)
44

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

testcontainers/testcontainers-node のほかの issue

testcontainers/testcontainers-node の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。