abseil / abseil/abseil-py

How to turn on vlog for a specific file?

未關閉
#156 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
2.5k
分支
279
平均合併
2 天 1 小時
30 天內合併 PR
1

描述

The `-v` flag can be used to enable vlog messages across all files, but is it possible to enable only for a specific file(s)? I think the C++ logging library uses `--vmodule` but there's no such flag for Python, even though a comment in the code says it should be possible: https://github.com/abseil/abseil-py/blob/master/absl/logging/__init__.py#L53

(BTW it'd be great to document the `-v` flag somewhere, it took me a while to figure that one out.)

貢獻指南

開啟貢獻指南

研究方向

Look at absl/logging/__init__.py around line 53 to understand the vlog mechanism and the comment about --vmodule. Check how the C++ library implements vmodule and see if a similar flag can be added to the Python logging setup. Test by modifying the argument parsing and logging configuration to accept a vmodule-like flag that filters vlog messages by file.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
tooling
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。