Skip to content

Commit

Permalink
fix: update appid enricher with correct extension
Browse files Browse the repository at this point in the history
  • Loading branch information
loekensgard committed Jun 27, 2023
1 parent 99c43e4 commit 7b6c209
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Serilog.Enrichers.AzureClaims

[![Build_and_Test](https://github.com/Intility/serilog-enricher-azureauthinfo/actions/workflows/Build_and_Test.yml/badge.svg)](https://github.com/Intility/serilog-enricher-azureauthinfo/actions/workflows/Build_and_Test.yml)
[![Build_and_Test](https://github.com/Intility/serilog-enrichers-azureclaims/actions/workflows/Build_and_Test.yml/badge.svg)](https://github.com/Intility/serilog-enrichers-azureclaims/actions/workflows/Build_and_Test.yml)
[![Publish](https://github.com/Intility/serilog-enrichers-azureclaims/actions/workflows/Publish.yml/badge.svg)](https://github.com/Intility/serilog-enrichers-azureclaims/actions/workflows/Publish.yml)

![Nuget](https://img.shields.io/nuget/dt/Serilog.Enrichers.AzureClaims)


Enriches Serilog events with information from the ClaimsPrincipal.

Install the _Serilog.Enrichers.AzureClaims_ [NuGet package](https://www.example.com/)
Install the _Serilog.Enrichers.AzureClaims_ [NuGet package](https://www.nuget.org/packages/Serilog.Enrichers.AzureClaims/)

```powershell
Install-Package Serilog.Enrichers.AzureClaims
Expand Down Expand Up @@ -49,6 +53,7 @@ builder.Logging.AddSerilog(new LoggerConfiguration()
.Enrich.WithDisplayName()
.Enrich.WithTID()
.Enrich.WithOID()
.Enrich.WithAppId()
.CreateLogger());

// ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ public static LoggerConfiguration WithAppId(this LoggerEnrichmentConfiguration e
if (enrichmentConfiguration is null)
throw new ArgumentNullException(nameof(enrichmentConfiguration));

return enrichmentConfiguration.With<TenantIdEnricher>();
return enrichmentConfiguration.With<AppIdEnricher>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<AssemblyName>Serilog.Enrichers.AzureClaims</AssemblyName>
<title>Serilog.Enrichers.AzureClaims</title>
<authors>Thorstein Løkensgard</authors>
<owners>Thorstein Løkensgard</owners>
<description>Enrich logs with UPN, ObjectId, TenantId etc..</description>
<owners>Intility</owners>
<description>Enrich logs with Azure AD Claims</description>
<Tags>Serilog, UPN, OID, ObjectId, TID, TenantId</Tags>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 7b6c209

Please sign in to comment.