is it possible to suppress logging on certain endpoints?

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
kubernetes, r
領域
api, observability

調査の方向性

Start at plumber2::api_logger() and plumber2::logger_console(), then trace how request logs are emitted for endpoint paths, especially /. Done means configuration can suppress request logs for / while preserving logging for other endpoints; the issue names no files or tests to run.

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

説明

I am explicitly setting plumber2::api_logger(logger = plumber2::logger_console()) so that I can capture logs to the console.

When I do that, I get message for requests like so:

plumber-api-1  | 2026-03-18 21:35:51.209925 - request: 192.168.155.1 -
plumber-api-1  | 2026-03-18 21:35:51.209925 - request: [request id]
plumber-api-1  | 2026-03-18 21:35:51.209925 - request: [18/Mar/2026:21:35:51 +0000] "GET / HTTP/1.1" 200 6

One thing that I notice is that if I have this running on a k8s pod where there is a health check pinging to / every few seconds, it fills up the logs. I want to know if I can suppress logging for the / endpoint so that I can ignore the health check logs.

主要言語
R
スター
119
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

posit-dev/plumber2 のほかの issue

posit-dev/plumber2 の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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