Skip to content

Commit

Permalink
moved Logging extension method to the WebAPI project
Browse files Browse the repository at this point in the history
  • Loading branch information
erikshafer committed Jun 24, 2024
1 parent 3bb694c commit 7af89a5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/Catalog/Catalog.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Catalog.Api;
using Catalog.Api.Infrastructure;
using Ecommerce.Core.WebApi.Infrastructure;
using Ecommerce.Core.WebApi.Swagger;
using Eventuous.Spyglass;
using Microsoft.AspNetCore.Http.Json;
Expand Down
3 changes: 3 additions & 0 deletions src/Core/Ecommerce.Core.WebApi/Ecommerce.Core.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.6" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="8.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Microsoft.Extensions.Configuration;
using Serilog;
using Serilog.Events;

namespace Catalog.Api.Infrastructure;
namespace Ecommerce.Core.WebApi.Infrastructure;

public static class Logging
{
Expand Down
30 changes: 0 additions & 30 deletions src/Retail/ShoppingCart.Api/Infrastructure/Logging.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Retail/ShoppingCart.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Ecommerce.Core.WebApi.Infrastructure;
using Ecommerce.Core.WebApi.Swagger;
using Eventuous.Spyglass;
using Microsoft.AspNetCore.Http.Json;
using NodaTime;
using NodaTime.Serialization.SystemTextJson;
using Serilog;
using ShoppingCart.Api;
using ShoppingCart.Api.Infrastructure;

var builder = WebApplication.CreateBuilder(args);

Expand Down
3 changes: 0 additions & 3 deletions src/Retail/ShoppingCart.Api/ShoppingCart.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.9.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.8.1" />
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcNetClient" Version="1.0.0-rc9.14" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="8.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>

Expand Down

0 comments on commit 7af89a5

Please sign in to comment.