generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
RFCTechnical design documents related to a feature requestTechnical design documents related to a feature requestarea/loggingCore logging utilityCore logging utilityfeature-requestNew or enhancements to existing featuresNew or enhancements to existing featuresreleasedFix or implementation already in main and releasedFix or implementation already in main and releasedv2v2 releasev2 release
Milestone
Description
Is this related to an existing feature request or issue?
No response
Which Powertools for AWS Lambda (.NET) utility does this relate to?
Logging
Summary
When using Powertools Logger, include filters to include or exclude logs under certain conditions
Use case
Include or exclude log entries under a certain conditions such as
- Ignore when message contains a text, or
- Log only when message matches a regular expressions
Proposal
Suggestion
Logger.AddFiter(fiterExpression);
Logger.AddFiters(fiterExpression1, fiterExpression2);Just a suggestion for filter class
public class LoggerFilterExpression
{
public LogAction Action { get; set; } // Enum value of Exclude, IncludeOnly, ...
public string Expression { get; set; } // ex: Contains('Hello'), NotOnly, JMESPath, etc.
}Out of scope
Anything which is not mentioned in the Summary and Proposal sections.
Potential challenges
TBD
Dependencies and Integrations
No response
Alternative solutions
Extending powertools logger to include the required functionalityAcknowledgment
- This feature request meets Powertools for AWS Lambda (.NET) Tenets
- Should this be considered in other Powertools for AWS Lambda (.NET) languages? i.e. Python, Java, and TypeScript
Metadata
Metadata
Assignees
Labels
RFCTechnical design documents related to a feature requestTechnical design documents related to a feature requestarea/loggingCore logging utilityCore logging utilityfeature-requestNew or enhancements to existing featuresNew or enhancements to existing featuresreleasedFix or implementation already in main and releasedFix or implementation already in main and releasedv2v2 releasev2 release
Type
Projects
Status
✅ Done