41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"AllowedHosts": "*"
|
|
} |