-
Notifications
You must be signed in to change notification settings - Fork 154
feat(logger): pretty printing logs in local and non-prod environment #1141
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
Merged
dreamorosi
merged 15 commits into
aws-powertools:main
from
shdq:751-feature-logger-pretty-printing-logs-in-local-and-non-prod-env
Nov 10, 2022
+211
−38
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3584db1
test(logger): add tests for POWERTOOLS_DEV env var and for pretty pri…
shdq 29a2444
feat(logger): add POWERTOOLS_DEV env var and method to get its value
shdq cb2dc62
test(logger): fix tests adding method that gets value of POWERTOOLS_D…
shdq 19e8dac
feat(logger): add pretty printing to logs if POWERTOOLS_DEV env var s…
shdq 7d30f4f
refactor(review): add private class property for indent size, move ev…
shdq c724fe3
test(logger): fix tests according to the changes in default logger co…
shdq c6eb7fe
docs(logger): update sections for pretty printing logs using POWERTOO…
shdq 7475f74
Update docs/core/logger.md
dreamorosi 9f239eb
Update docs/core/logger.md
shdq 1c2ef89
fix(docs): update default value for POWERTOOLS_DEV env var
shdq a01459b
Merge branch 'awslabs:main' into 751-feature-logger-pretty-printing-l…
shdq 6dad13b
Merge branch '751-feature-logger-pretty-printing-logs-in-local-and-no…
shdq 284eaff
feat(logger): add isValueTrue method that checks the string value for…
shdq dab7a00
test(logger): adjust tests for config interface
shdq 5a089bc
test(logger): add tests for isValueTrue method, remove redundunt tests
shdq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,8 @@ export { | |
ConstructorOptions, | ||
HandlerOptions | ||
}; | ||
|
||
export const enum LogJsonIndent { | ||
PRETTY = 4, | ||
COMPACT = 0, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat, I like it