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

Logging levels to different outputs

オープン
#364 コメント 11 件 リアクション 2 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust

調査の方向性

まず、env_logger の現在のハードコードされた target 処理と、issue #364 に関する議論を読んでください。Mixed target、レベルごとのルーティング、カスタム target が既存の target および enum の設計にどのように適合するかを判断してください。info を stdout に、error を stderr に送るようなルーティングが実装・テストされ、動作と API について合意されていれば完了です。

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

説明

I think it'd be a useful addition to allow logging different logging levels to different outputs. If this is already possible, please excuse my inability to search issues or read documentation or read code. Especially the last.

Self deprication aside, it's currently hardcoded what targets can be used with env_logger. The current issue I'm facing is the following:

  • I log info logs
  • I log error logs
  • Both go to stderr, stdout or a pipe I guess

I don't like that, I'd prefer logging info to stdout and error to stderr. That should be relatively simple with a Mixed target or smtg, and implementing the different targets seperately instead of matching an enum. That'd even open up the possibility for custom targets!

Do I dream too big? Yes. But!

Okay, yes.

Thanks, hope this sparks some ideas, I'm sorry for being so casual k thx bye <3

(also, letting me implement it is a bad idea I cannot do the rust well)

主要言語
Rust
スター
1.1k
フォーク
150
平均マージ
3分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

rust-cli/env_logger のほかの issue

rust-cli/env_logger の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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