Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with update to version 3.0.0 #93

Closed
GodEmperorOfTime opened this issue Jun 12, 2023 · 4 comments
Closed

Issue with update to version 3.0.0 #93

GodEmperorOfTime opened this issue Jun 12, 2023 · 4 comments

Comments

@GodEmperorOfTime
Copy link

Hi,

I just encountered an issue after updating to 3.0.0 (from 2.3.0): I don't see any records in Graylog server 😢

The same code with the previous version (2.3.0) of package works fine: minimal repro

Is it possible that the problem is TCP? Or am I missing something?

Program.cs:

using Serilog;
var builder = WebApplication.CreateBuilder(args);
 // ..
builder.Host.UseSerilog((context, config) => {
  config.ReadFrom.Configuration(context.Configuration);
});
// ..

appsettings.json:

{
  "Serilog": {
    "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.Graylog" ],
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        //"Microsoft": "Warning" // Zdroj: https://nblumhardt.com/2016/07/serilog-2-minimumlevel-override/
      }
    },
    "WriteTo": [
      { "Name": "Console" },
      {
        "Name": "Graylog",
        "Args": {
          "hostnameOrAddress": "192.168.144.226",
          "port": "12201",
          "transportType": "Tcp"
        }
      }
    ],
    "Properties": {
      "Application": "GraylogIssueDemo"
    }
  },
}
@GodEmperorOfTime GodEmperorOfTime changed the title Issue with update to verseion 3.0.0 Issue with update to version 3.0.0 Jun 12, 2023
@jochenkluger
Copy link

Hi,
same issue here.
Using code to configure the graylog sink it works, using appsettings.json it does not work any more.

@whir1
Copy link
Contributor

whir1 commented Jun 14, 2023

@GodEmperorOfTime
It's very strange, one of these days I'll see why the configuration from the config stopped working

@whir1 whir1 closed this as completed in c7e6980 Jun 15, 2023
whir1 added a commit that referenced this issue Jun 15, 2023
@whir1
Copy link
Contributor

whir1 commented Jun 15, 2023

@GodEmperorOfTime fixed in 3.0.1 version

@GodEmperorOfTime
Copy link
Author

Thanks! I can confirm, it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants