-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(logger): support use_datetime_directive for timestamps #920
feat(logger): support use_datetime_directive for timestamps #920
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #920 +/- ##
========================================
Coverage 99.96% 99.96%
========================================
Files 118 118
Lines 5281 5291 +10
Branches 606 608 +2
========================================
+ Hits 5279 5289 +10
Partials 2 2
Continue to review full report at Codecov.
|
thanks a lot @huonw - I need to finish two other PRs and then I'll get back to this. I think an extra string parameter could confuse customers... perhaps a flag parameter like |
Sounds good! |
Docs PR finished. Will finish the new feature flags extension tomorrow (non-boolean values) then I get to this in the morning, and we release it ;-) o//! If you have some good samples that we could add in the docs of some common date formats (e.g. ISO8601), that would be awesome! |
All other PRs finished, looking into this now, taking the liberty to make some minor changes, docs, all in the same PR so we can merge and release it today o//!!! |
…tools-python into feature/905-datetime * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: feat(feature_flags): support beyond boolean values (JSON values) (aws-powertools#804) docs: consistency around admonitions and snippets (aws-powertools#919) chore(deps-dev): bump mypy from 0.920 to 0.930 (aws-powertools#925) fix(event-sources): handle dynamodb null type as none, not bool (aws-powertools#929) fix(apigateway): support @app.not_found() syntax & housekeeping (aws-powertools#926) docs: Added GraphQL Sample API to Examples section of README.md (aws-powertools#930) feat(idempotency): support dataclasses & pydantic models payloads (aws-powertools#908) feat(tracer): ignore tracing for certain hostname(s) or url(s) (aws-powertools#910) feat(event-sources): cache parsed json in data class (aws-powertools#909) fix(warning): future distutils deprecation (aws-powertools#921)
Thanks for finishing this off (I was on leave). Your changes look great 👍 |
Issue #, if available: #905
Description of changes:
This adds a new argument
datetime_fmt
that provides more power over the currentdatefmt
, by formatting using thedatetime
module rather than thetime
one. This is a separate argument to avoid changing behaviour for any existing users ofdatefmt
.Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.