apex / apex/log

Add caller (file:line number) to non-tracing entries?

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

説明

Any opinions on this? It's available from `runtime.Caller`. Following the current design, it could be enabled by having a function like `log.IncludeCaller(bool)` and then every entry would include a field `caller` with value `file:line number`). Could also implement this as the default log library handles flags, e.g. `log.SetFlags(log.LstdFlags | log.Lshortfile)`.

I'm happy to create a PR for this if you'd like.

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

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

評価

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

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

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