fluent / fluent/fluent-logger-python
support of `asctime`
未关闭
- 主要语言
- Python
- 星标
- 457
- 派生
- 138
- PR 合并指标
- 30 天内没有已合并 PR
描述
It would be great to support both milliseconds and timezone in the datefmt, for example: `%Y-%m-%dT%H:%M:%S,%f%z`. (I used `%f `for milliseconds, even though it's not supported by` datetime.strftime`.)
I understand this limitation comes from the standard library formatter `logging.Formatter`, but if `fluent-logger-python` could work around or resolve it, that would be very helpful.
As a work around, user may provide a `format_time(record, datefmt)` function to the constructor instead of relying on the `logging.Formatter.formatTime`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。