2019-10-31 10:23:07 +01:00
|
|
|
{
|
|
|
|
"Logging": {
|
|
|
|
"LogLevel": {
|
|
|
|
"Default": "Information",
|
|
|
|
"Microsoft": "Warning",
|
|
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
}
|