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

Use JSON console logging #970

Merged
merged 6 commits into from
Nov 26, 2023
Merged

Use JSON console logging #970

merged 6 commits into from
Nov 26, 2023

Conversation

martincostello
Copy link
Owner

@martincostello martincostello commented Nov 26, 2023

  • Use the .NET JSON console logger.
  • Filter out logs from Polly.
  • Remove use of ILambdaContext to log and get a logger from DI instead.
  • Use MSBUILDTERMINALLOGGER:auto instead of --tl.
  • Remove hard-coded backslashes.
  • Use --jsonfile/-JsonFile and --skip-non-versioned-files/-SkipNonVersionedFiles.
  • Use [] instead of Array.Empty<T>().
  • Use target-typed new to simplify some code.
  • Revert to default xunit test display option.

- Use `MSBUILDTERMINALLOGGER:auto` instead of `--tl`.
- Remove hard-coded backslashes.
- Use `--jsonfile`/`-JsonFile` and `--skip-non-versioned-files`/`-SkipNonVersionedFiles`.
Use `[]` instead of `Array.Empty<T>()`.
Revert to default xunit test display option.
- Use the .NET JSON console logger.
- Filter out logs from Polly.
Remove use of `ILambdaContext` to log and get a logger from DI instead.
@martincostello martincostello added enhancement dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Nov 26, 2023
Use target-typed new to simplify some code.
Copy link

codecov bot commented Nov 26, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (6fcd00f) 96.98% compared to head (55b34b1) 96.97%.

Files Patch % Lines
src/LondonTravel.Skill/Intents/CommuteIntent.cs 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #970      +/-   ##
==========================================
- Coverage   96.98%   96.97%   -0.01%     
==========================================
  Files          24       24              
  Lines         497      496       -1     
  Branches       57       57              
==========================================
- Hits          482      481       -1     
  Misses          5        5              
  Partials       10       10              
Flag Coverage Δ
linux 95.96% <88.88%> (-0.01%) ⬇️
macos 96.97% <88.88%> (-0.01%) ⬇️
windows 96.97% <88.88%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello
Copy link
Owner Author

/deploy dev

Copy link

github-actions bot commented Nov 26, 2023

🧪 Tests for deployment to dev passed ✅

@martincostello martincostello marked this pull request as ready for review November 26, 2023 11:24
@martincostello martincostello merged commit 4655865 into main Nov 26, 2023
11 of 13 checks passed
@martincostello martincostello deleted the json-console-logging branch November 26, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant