aws / aws/aws-lambda-python-runtime-interface-client

Library is swallowing log messages from function code

オープン
#38 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
294
フォーク
84
平均マージ
3日 7分
マージ済み PR(30日)
3

説明

I'm using logging messages in my python code, but none of those are ever visible. I'm currently configuring my logger like so:

```python

formatter = json_log_formatter.JSONFormatter()
handler = logging.StreamHandler(sys.stdout)

if conf.USE_JSON_LOGGING:
handler.setFormatter(formatter)

logging.basicConfig(
level=logging.INFO,
format='[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s', # noqa
handlers=[handler],
)
logger = logging.getLogger(__name__)
```

However, I never see the logs. Where are they going?

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

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

評価

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

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

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