support of `asctime`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by reading Python's logging.Formatter.formatTime behavior and the logger constructor's format_time(record, datefmt) workaround described in the issue. Check how datefmt is currently passed through, then verify that a format such as %Y-%m-%dT%H:%M:%S,%f%z produces milliseconds and timezone information.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 457
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluent/fluent-logger-python
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
fluent/fluent-logger-python#196 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
fluent/fluent-logger-python#195 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
fluent/fluent-logger-python#194 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fluent/fluent-logger-python#193 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
fluent/fluent-logger-python#190 ·
All issues in fluent/fluent-logger-python
Similar issues
-
essnmx good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
[Feature] 奇物选择添加优先级 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Giskard-AI/giskard-oss#2840 · 1 comment ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Openarea: repo bug perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yeti-platform/yeti#1380 ·