Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available: #965
Description of changes:
Developer experience
The developer experience doesn't change that much. Instead of using the logging module, developers need to add the implementation module (logging-logback, logging-log4j, ...) which has a dependency on the logging module.
Ex:
Then they need to have the proper config file (log4j2.xml or logback.xml).
JsonTemplateLayout
. Two layout.json files are provided (standard and ECS). This can be extended. Developers can also choose to remove some fields generated by powertools or to rename them. The Resolver is more granular (each field is accessible). See the LambdaJsonLayout.json or LambdaEcsLaout.json.LambdaJsonEncoder
andLambdaEcsEncoder
). They don't rely on any external dependency (json, elastic) to reduce the size of the final package. We can probably go further in the customization here (for example having an 'excludeFields' attribute to remove some of the fields or an 'includeFields' to only select a few ones:Checklist
==> this version will not be backward compatible. Several changes are required from the developer, and it comes with several changes (field names)
==> but it comes with a more standard way of logging (slf4j) and does not force a specific framework. It is also a bit more open for extension.
==> not fully, wanted to share the DX first.
==> not yet, wanted to share the DX first.
Breaking changes
RFC issue #: #965, #752
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.