'Enable Serilog's Selflog from config file

The docs only show how to enable Selflog programmatically. I would like to enable/disable it by just updating the config file.

Is there a way to enable selflog from config file the same we do to define loggers and sinks?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source