How to specify JsonFormatter in Web.config for SeriLog?

ⅰ亾dé卋堺 提交于 2019-12-24 04:49:09

问题


I am trying to figure out how to specify JsonFormatter in web.config for SeriLog, I am also using rolling file sink and that is specified in the web.config as well.


回答1:


There isn't currently any support for specifying custom text formatters in XML with Serilog. Using code to perform this configuration, perhaps based on reading an app setting, is your best bet today.



来源:https://stackoverflow.com/questions/32053859/how-to-specify-jsonformatter-in-web-config-for-serilog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!