generated from UK-Export-Finance/nestjs-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apim-538): add environment variable for log format (#337)
## Introduction Currently, all our log messages use the single line format which makes them hard to read during local development but is good for the dev, staging, and production environments. ## Resolution - Added an environment variable that controls if we use single line or multi-line logging format - Use this to set the singleLine property in our logging config ## Misc - Added tests for log level --------- Co-authored-by: Alex Bramhill <abramhill@ukexportfinance.gov.uk>
- Loading branch information
1 parent
c9e0418
commit fc54db2
Showing
5 changed files
with
55 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ PORT= | |
|
||
LOG_LEVEL=debug | ||
REDACT_LOGS=false | ||
SINGLE_LINE_LOG_FORMAT=true | ||
|
||
# Swagger | ||
SWAGGER_USER= | ||
|
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
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