Skip to content

sheltertake/serilog-http-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serilog-http-playground

  • startup elastic stack
cd elastic-stack
docker-compose up
cd src
dotnet run

The api configuration

 Log.Logger = new LoggerConfiguration()
.MinimumLevel.Is(LogEventLevel.Debug)
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
.MinimumLevel.Override("System", LogEventLevel.Warning)
.WriteTo.Http(
        requestUri: "http://localhost:31311",
        batchFormatter: new Serilog.Sinks.Http.BatchFormatters.ArrayBatchFormatter(),
        queueLimit:10)
.WriteTo.Console()
.CreateLogger();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages