h-fathi / DistributedCorrelationLogging

Distributed correlation logging in multiple microservices by serilog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DistributedCorrelationLogging

Distributed correlation logging in multiple microservices by serilog

How to use:

1- Add UseSerilog(SeriLogger.Configure) in program.cs

2- Register ICorrelationIdAccessor in startup like :

  services.AddTransient<ICorrelationIdAccessor, CorrelationIdAccessor>();
  
  services.AddTransient<LoggingDelegatingHandler>();

Enjoy!

About

Distributed correlation logging in multiple microservices by serilog


Languages

Language:C# 100.0%