Questions tagged [serilog-sinks-console]
3 questions
1
vote
3 answers
Serilog.Sinks.Console formatter configure is not work
I configure the output format in appsettings.json, but it does not work:
{
"Serilog": {
"WriteTo": [
{
"Name": "Console",
"Args": {
"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"
…

WENJUN CHI
- 507
- 3
- 11
1
vote
0 answers
How to escape new lines in rendered message using Serilog and Console sink?
For the reasons that I will cover in the background at the end of this post, I need to escape new lines in both logged messages and exceptions printed to console using Serilog (i.e. convert \r and \n to \\r and \\n respectively). I created two…

Alek Davis
- 10,628
- 2
- 41
- 53
0
votes
0 answers
To Log subsequent API calls (nested API calls) in a HTTP request using Serilog
I'm working on to Log API request that went through multiple API for its response. Currently, I'm receiving the log of top level endpoint. I need to log all those subsequent log as HTTP request.
I've tried adding very own logging inside each API…

Vikram R
- 15
- 6