Azure / Azure/azure-functions-python-worker

Logging to Application Insights Include logger name

オープン
#1,319 コメント 7 件 リアクション 0 件 担当者 1 名 @bhagyshricompany が担当を希望しています GitHub で見る
area:python-functions needs-attention :wave:
主要言語
Python
スター
357
フォーク
116
平均マージ
32分
マージ済み PR(30日)
1

説明

#### Question

Ultimately, all I really want to be able to do is something like:

```python
root_logger = logger.getLogger()
child_logger = logger.getLogger("some_child_module")

root_logger.info("a root log")
child_logger.info("a child log")
```

and in application insights be able to filter only those logs for the `some_child_module` logger, etc.

I am hoping to get some guidance on how to do this. It would be great if that could be supported by default somehow but for now I would just like some approach where I can filter logs for specific modules/packages, etc. I cannot find any resources on how to do this. I see #694 which seems to indicate there isn't really a straightforward way to add additional properties through custom_dimensions

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

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

評価

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

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

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