Skip to content

Commit b08a370

Browse files
committed
Serilog settings
Serilog settings added
1 parent 15aea39 commit b08a370

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Supermarket/appsettings.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
{
2-
"Logging": {
3-
"LogLevel": {
4-
"Default": "Warning"
2+
"Serilog": {
3+
"MinimumLevel": "Information",
4+
"WriteTo": [
5+
{
6+
"Name": "RollingFile",
7+
"Args": {
8+
"pathFormat": "LogFiles/FileOn_{Date}.txt",
9+
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
10+
}
11+
}
12+
],
13+
"Properties": {
14+
"Application": "Supermarket ASP.NET Core Web API"
515
}
616
},
717
"ConnectionStrings": {

0 commit comments

Comments
 (0)