Answer the question
In order to leave comments, you need to log in
How to format a Serilog file?
How can I format the data that is written to Serilog?
Now the data that came from Serilog is recorded as text.txt.
How can I make a template for a post or something like that?
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Information",
"System": "Information"
}
},
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "logs/log_.txt",
"rollingInterval": "Day"
}
}
]
},
Answer the question
In order to leave comments, you need to log in
Nothing strange. You are importing a module from source that uses another module. It is correct in such cases to build with webpack + babel or browserify .
In the assembly of the library on the official website, there are collected themes that can be imported to the page. Get the theme file from there.
Yes. There is a sink for writing json, instead of bare text.
UPD: not a sink, but a formatter.
https://github.com/serilog/serilog-formatting-compact
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question