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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MhLabs.WebApi.Observability" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MhLabs.WebApi.Observability --version 4.0.0                
#r "nuget: MhLabs.WebApi.Observability, 4.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. Create a new branch
  2. Update Version number and add -beta postfix (can have .1, .2 etc. at the end)
  3. Make any required changes updating the version as you go
  4. Test beta package in solution that uses package
  5. Create PR and get it reviewed
  6. 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
  7. As the final thing before merging update version number and remove post fix
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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,171 1/2/2023
3.1.0 447 12/27/2022
3.1.0-beta03 171 12/27/2022
3.1.0-beta02 154 12/27/2022
3.1.0-beta01 162 12/27/2022
3.0.1 8,302 12/17/2021
3.0.0 4,695 10/20/2021
2.0.3 1,571 9/12/2021
2.0.2 3,493 8/31/2021
2.0.1 1,575 3/18/2021
2.0.0 2,074 1/15/2021
1.0.2 14,933 7/2/2020
1.0.1 10,449 4/21/2020
1.0.0 2,669 2/14/2020
0.0.9 4,900 11/6/2019
0.0.8 1,768 10/14/2019
0.0.7 2,132 9/26/2019
0.0.6 895 9/24/2019
0.0.5 1,067 9/24/2019
0.0.4 852 9/24/2019
0.0.3 1,070 9/23/2019
0.0.2 686 9/23/2019
0.0.1 1,220 9/23/2019