OutOFTouch
OutOFTouch

Reputation: 1077

How to specify JsonFormatter in Web.config for SeriLog?

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.

Upvotes: 2

Views: 1136

Answers (1)

Nicholas Blumhardt
Nicholas Blumhardt

Reputation: 31832

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.

Upvotes: 1

Related Questions