Squirrowse/Squirrowse.Service/appsettings.json

43 lines
1.1 KiB
JSON
Raw Permalink Normal View History

2019-10-31 10:23:07 +01:00
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
2019-11-07 14:26:46 +01:00
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.SignalR": "Debug",
"Microsoft.AspNetCore.Http.Connections": "Debug"
2019-10-31 10:23:07 +01:00
}
},
2019-10-31 12:53:57 +01:00
"NLog": {
"autoreload": true,
"throwConfigExceptions": true,
"variables": {
"logDirectory": "${basedir}/logs"
},
"targets": {
"FileLogger": {
"type": "AsyncWrapper",
"target": {
"wrappedFile": {
"type": "File",
"fileName": "${logDirectory}/${machinename}.Log.txt",
"layout": "${longdate} ${level}: ${message} ${exception:format=tostring}",
"archiveFileName": "${logDirectory}/archives/${machinename}.Log_{#}.txt",
"archiveDateFormat": "yyyy-MM-dd",
"archiveAboveSize": "5242880",
"archiveEvery": "Day",
"archiveNumbering": "DateAndSequence",
"maxArchiveFiles": "90"
}
}
}
},
"rules": [
{
"logger": "*",
"writeTo": "FileLogger"
}
]
},
2019-10-31 10:23:07 +01:00
"AllowedHosts": "*"
2019-10-31 12:53:57 +01:00
}