16 questions
0
votes
1
answer
54
views
Serilog xml-based config sublogger not working
I would like writing regular logs to log.csv, statistics info to separate log files. (.NET Framework 4.7.)
Instantiated in code - I want to keep it minimal and have purely xml-based config.
Log.Logger ...
0
votes
0
answers
124
views
Serilog Filter expression "ByExcluding"
I need the logs as follows
Health Check should have single log entry for /health/live and /health/ready when Status 200. Currently 3 log entries for /health/live 3-10 log entries for /health/ready.
...
0
votes
1
answer
917
views
Serilog Sink File with Filter not worked using the appsettings.json
WEB API, .NET CORE, C#, NET 8.0, SERILOG, SINK FILE, SERILOG EXPRESSIONS
Good morning,
as per demo attached here (https://github.com/serilog/serilog-sinks-file/issues/317) I have some problem to write ...
1
vote
2
answers
1k
views
Configure Serilog to log to different sinks using Serilog Expressions
I am trying to get Serilog in my asp.net core project to log certain types of logs to a different sink depending on what is being logged, but all I end up with is 2 seperate logs with the exact same ...
1
vote
2
answers
281
views
Is there a way to reference an appsettings value within the Serilog section in appsettings?
Using Serilog.Settings.Configuration (and presumably Serilog.Expressions) is it possible to reference another appsettings value? I'm trying to dynamically set endpointUrl below without duplicating the ...
1
vote
1
answer
364
views
Does the Serilog console sink support expressions?
I'm trying to output to console by configuring the sink as follows:
{
"Name": "Console",
"Args": {
"theme": "Serilog.Sinks.SystemConsole.Themes....
1
vote
0
answers
155
views
Serilog.Expressions how to use the wildcard indexing (any) operator on a dictionary
I'm using Serilog.Expressions (3.4.0) to try to filter SQL injection attacks appearing in the query string. I've enriched the log event with the query string as a dictionary. It appears in my output ...
2
votes
1
answer
779
views
How to Filter serilog with UseSerilogRequestLogging
I'm using serilog and try to filter out HTTP Methods that are not POST, GET, PUT, and DELETE. for example filter out OPTIONS Method.
I also use UseSerilogRequestLogging and Serilog.Expressions.
...