Turn Off ServiceStack Logging

2019-07-15 07:37发布

问题:

ServiceStack's internal logging isn't something I want to have in my logs. How do we disable the internal logging, or at least suppress it so it doesn't clog the log?

回答1:

When configuring your LogManager just set it to an instance of NullLogFactory

LogManager.LogFactory = new NullLogFactory();