"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"Enrich": [ "FromLogContext", "WithThreadId" ],
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "Debug",
"Args": {
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "Logs/log.txt",
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter",
"rollingInterval": "Day",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {SourceContext} {ThreadId} [{Level:u3}] {Message:lj}{NewLine}{Exception}",
"shared": true,
"rollOnFileSizeLimit": true,
"fileSizeLimitBytes": 102400000,
"retainedFileCountLimit": 365
}
}
]
},
相关文章
- 11-08world转pdf-(速成简单-包含配置文件)
- 11-08c – 如何使配置脚本检查依赖项
- 11-08华为模拟器 AP AC配置
- 11-08vim status 颜色配置
- 11-08Spring配置文件beans标签报错问题解决
- 11-08apache与tomcat负载集群集成方法配置
- 11-08Cisco三层交换机的配置详解
- 11-08静态路由设置配置实例
- 11-08动态路由—OSPF路由协议高级配置(实操!)
- 11-08在GNS3 1.3.10中进行简单的静态路由配置