We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I created an asp.net core project and wrote logs into Graylog:
using Serilog; var builder = WebApplication.CreateBuilder(args); builder.Logging.ClearProviders(); builder.Host.UseSerilog((context, cfg) => { cfg.ReadFrom.Configuration(context.Configuration); }); var app = builder.Build(); await app.RunAsync();
Environment:
Serilog config:
"Serilog": { "MinimumLevel": { "Default": "Information" }, "WriteTo": [ { "Name": "Graylog", "Args": { "hostnameOrAddress": "82.156.64.210", "port": "12201", "transportType": "Tcp", "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff} {Level:u3}] [{SourceContext:l}] {Message:lj} {NewLine}{Exception}" } }, { "Name": "Console", "Args": { "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff} {Level:u3}] [{SourceContext:l}] {Message:lj} {NewLine}{Exception}" } } ] }
When I run the project, it prints 4 logs on the console, but only one message in Graylog:
But, if I debug at TcpTransport.Send, it will write more than one message into Graylog:
TcpTransport.Send
In the TcpTransportClient.Send method some messages may not be successfully sent to the network, I'm not sure.
TcpTransportClient.Send
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I created an asp.net core project and wrote logs into Graylog:
Environment:
Serilog config:
When I run the project, it prints 4 logs on the console, but only one message in Graylog:
But, if I debug at
TcpTransport.Send
, it will write more than one message into Graylog:In the
TcpTransportClient.Send
method some messages may not be successfully sent to the network, I'm not sure.The text was updated successfully, but these errors were encountered: