-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(logger): refactor types and interfaces (#1758)
* chore(logger): refactor types and interfaces * chore: grouped type files * chore: fix code smell * chore: fix ci * chore: fix ci
- Loading branch information
1 parent
7f0becd
commit b4568f9
Showing
22 changed files
with
601 additions
and
694 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* The indent level for JSON logs. | ||
* | ||
* By default Logger will use the `LogJsonIndent.COMPACT` indent level, which | ||
* produces logs on a single line. This is the most efficient option for | ||
* CloudWatch Logs. | ||
* | ||
* When enabling the `POWERTOOLS_DEV` environment variable, Logger will use the | ||
* `LogJsonIndent.PRETTY` indent level, which indents the JSON logs for easier | ||
* reading. | ||
*/ | ||
const LogJsonIndent = { | ||
PRETTY: 4, | ||
COMPACT: 0, | ||
} as const; | ||
|
||
export { LogJsonIndent }; |
Oops, something went wrong.