serilog-exceptions

Serilog - Separate files for Information, exception using appsetting.json

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-01 09:36:59
问题 I am writing all logs into one file(s) using rolling. But I want to separate them by Information , Warning and Exceptions rolling files. my current configuration is like this "Serilog": { "WriteTo": [ { "Name": "RollingFile", "Args": { "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}", "pathFormat": "logs\\log-{Hour}.log", "rollOnFileSizeLimit ": true, "retainedFileCountLimit ": null, "rollingInterval": "Hour", "fileSizeLimitBytes": 5000000 }

Serilog - Separate files for Information, exception using appsetting.json

ぃ、小莉子 提交于 2021-01-01 09:35:09
问题 I am writing all logs into one file(s) using rolling. But I want to separate them by Information , Warning and Exceptions rolling files. my current configuration is like this "Serilog": { "WriteTo": [ { "Name": "RollingFile", "Args": { "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}", "pathFormat": "logs\\log-{Hour}.log", "rollOnFileSizeLimit ": true, "retainedFileCountLimit ": null, "rollingInterval": "Hour", "fileSizeLimitBytes": 5000000 }

Serilog - Separate files for Information, exception using appsetting.json

浪子不回头ぞ 提交于 2021-01-01 09:34:54
问题 I am writing all logs into one file(s) using rolling. But I want to separate them by Information , Warning and Exceptions rolling files. my current configuration is like this "Serilog": { "WriteTo": [ { "Name": "RollingFile", "Args": { "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}", "pathFormat": "logs\\log-{Hour}.log", "rollOnFileSizeLimit ": true, "retainedFileCountLimit ": null, "rollingInterval": "Hour", "fileSizeLimitBytes": 5000000 }