apex / apex/log

Lazy fields

オープン
#37 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
1.4k
フォーク
110
PR マージ指標
30日以内にマージされた PR はありません

説明

It would be nice to have an optional ``WithLazyFields(key string, func() interface{})`` method to calculate field value only when it's retrieved with ``Get(key string)`` method.

I.e. some entries may be discarded due to log level, but they are still evaluated.

A real life example is dumping http requests/responses on debug level. It requires much more memory for each request to process, and it's painful to have some debug switches to turn it on/off on local/production system.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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