Skip to content

pengweiqhca/Microsoft.Extensions.Logging.Structured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write Microsoft.Extensions.Logging to kafka.

How to use

Install the Nuget package.

Install-Package Tuhu.Extensions.Logging.Structured.Kafka

In your testing project, add the following framework

ILoggingBuilder lb = ....;
lb.AddKafka("localhost:19200", "test")
    .AddLayout("DateTime", new DateTimeOffsetLayout())
    //.AddLayout("XXX", new YYYLayout())
    .AddLayout("Exception", new ExceptionLayout());

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages