Skip to content
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: implement _isLoggable method #3894

Merged
merged 16 commits into from
Oct 9, 2023

Conversation

khatruong2009
Copy link
Member

Issue #, if available:

Description of changes:
Implement _isLoggable method to filter logs based on category and user constraints.
Also corrected the category log level type in UserLogLevel class

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@khatruong2009 khatruong2009 force-pushed the feat-logging-isLoggable branch from c01df68 to 0cc7564 Compare October 4, 2023 17:20
khatruong2009 and others added 2 commits October 4, 2023 12:02
@khatruong2009 khatruong2009 marked this pull request as ready for review October 5, 2023 18:04
@khatruong2009 khatruong2009 requested a review from a team as a code owner October 5, 2023 18:04
Copy link
Contributor

@fjnoyp fjnoyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments.

@khatruong2009 khatruong2009 merged commit 1f07bfb into feat/logging/cloudwatch Oct 9, 2023
146 of 159 checks passed
@khatruong2009 khatruong2009 deleted the feat-logging-isLoggable branch October 20, 2023 18:36
khatruong2009 added a commit that referenced this pull request Nov 27, 2023
* feat: implement _isLoggable and corrected categoryLogLevel in UserLogLevel class

* chore: added _userId private variable instead of using method variable

* chore: add aft workflows

* chore: added helper method make sure category keys match

* chore: removed unnecessary new listener

* Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/cloudwatch_logger_plugin.dart

Co-authored-by: NikaHsn <nika.hasani@gmail.com>

* chore: removed white spaces

* chore: added tests, tests methods, and fixed a typ

* Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/cloudwatch_logger_plugin.dart

Co-authored-by: NikaHsn <nika.hasani@gmail.com>

* chore: removed testing methods and adjusted tests

* chore: WIP - changed tests for handleLogEntry

* chore: added future<void>.delay(0) to tests

* chore: updated remote_constraint_provider_test

* updated the tests

* chore: flattened if statement

---------

Co-authored-by: NikaHsn <nika.hasani@gmail.com>
Co-authored-by: Nika Hassani <nikaws@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants