MhLabs.WebApi.Observability
4.0.0
dotnet add package MhLabs.WebApi.Observability --version 4.0.0
NuGet\Install-Package MhLabs.WebApi.Observability -Version 4.0.0
<PackageReference Include="MhLabs.WebApi.Observability" Version="4.0.0" />
paket add MhLabs.WebApi.Observability --version 4.0.0
#r "nuget: MhLabs.WebApi.Observability, 4.0.0"
// Install MhLabs.WebApi.Observability as a Cake Addin #addin nuget:?package=MhLabs.WebApi.Observability&version=4.0.0 // Install MhLabs.WebApi.Observability as a Cake Tool #tool nuget:?package=MhLabs.WebApi.Observability&version=4.0.0
MhLabs.WebApi.Observability
Configure log levels in a lambda
To change the log level in a lambda set the Serilog__MinimumLevel environment variable to the desired level, see example below. Please note that when running on Windows the environment variable name should be Serilog:MinimumLevel
MyLambda:
Type: AWS::Serverless::Function
Properties:
Timeout: 10
CodeUri: ./my_lambda_project
Handler: my_lambda_project::my_lambda_project.Functions.MyFunction::FunctionHandler
Environment:
Variables:
Serilog__MinimumLevel: Debug
Pushing a new version
Set the Version
number in the <a href="https://github.com/mhlabs/MhLabs.WebApi.Observability/blob/master/MhLabs.WebApi.Observability/MhLabs.WebApi.Observability.csproj"> .csproj-file</a> before pushing. If an existing version is pushed the <a href="https://github.com/mhlabs/MhLabs.WebApi.Observability/actions">build will fail</a>.
Publish pre-release packages on branches to allow us to test the package without merging to master
- Create a new branch
- Update
Version
number and add-beta
postfix (can have .1, .2 etc. at the end) - Make any required changes updating the version as you go
- Test beta package in solution that uses package
- Create PR and get it reviewed
- Check if there are any changes on the branch you're merging into. If there are you need to rebase those changes into yours and check that it still builds
- As the final thing before merging update version number and remove post fix
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- MhLabs.APIGatewayLambdaProxy (>= 5.0.1)
- MhLabs.APIGatewayLambdaProxy.Logging (>= 5.0.0)
- mhlabs.metrics (>= 3.0.0)
- MhLabs.SerilogExtensions (>= 2.0.0)
- Moq (>= 4.18.3)
- Serilog (>= 2.12.0)
- Serilog.AspNetCore (>= 6.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.0.0 | 9,162 | 1/2/2023 |
3.1.0 | 443 | 12/27/2022 |
3.1.0-beta03 | 169 | 12/27/2022 |
3.1.0-beta02 | 152 | 12/27/2022 |
3.1.0-beta01 | 160 | 12/27/2022 |
3.0.1 | 8,298 | 12/17/2021 |
3.0.0 | 4,691 | 10/20/2021 |
2.0.3 | 1,567 | 9/12/2021 |
2.0.2 | 3,489 | 8/31/2021 |
2.0.1 | 1,571 | 3/18/2021 |
2.0.0 | 2,070 | 1/15/2021 |
1.0.2 | 14,927 | 7/2/2020 |
1.0.1 | 10,443 | 4/21/2020 |
1.0.0 | 2,663 | 2/14/2020 |
0.0.9 | 4,894 | 11/6/2019 |
0.0.8 | 1,762 | 10/14/2019 |
0.0.7 | 2,125 | 9/26/2019 |
0.0.6 | 889 | 9/24/2019 |
0.0.5 | 1,061 | 9/24/2019 |
0.0.4 | 846 | 9/24/2019 |
0.0.3 | 1,064 | 9/23/2019 |
0.0.2 | 680 | 9/23/2019 |
0.0.1 | 1,214 | 9/23/2019 |