serilog / serilog-aspnetcore

Serilog integration for ASP.NET Core
Apache License 2.0
1.32k stars 209 forks source link

UseSsl from appsettings.json not working. #318

Closed angroPowel closed 1 year ago

angroPowel commented 1 year ago

Description Not 100 % sure if thie belongs here or in the graylog sink, but this is my issue:

Sett the "useSsl" property in appsettings.json don't work. My appsettings.json:

image

This is my program.cs, using .Net 6:

image

I have a local project that sends logs to a localhost graylog project, and it works fine.

It also works to my online project if I do it like this:

image

But I would prefer to do it from appsettings.json.

Expected behavior Write logs to my online graylog project "exampleSite.com", configuring from secure connections from appsettings.json.

Relevant package, tooling and runtime versions .Net 6 running on my PC Serilog.AspNetCore 6.1.0 Serilog.Sinks.Graylog 2.3.0

augustoproiete commented 1 year ago

This is specific to the Graylog sink - https://github.com/whir1/serilog-sinks-graylog/issues/88