fluent / fluent/fluent-logger-python
support of `asctime`
- Lenguaje dominante
- Python
- Estrellas
- 457
- Forks
- 138
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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`
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100